hide params with python

   1313   2   2
User Avatar
Member
562 posts
Joined: Aug. 2008
Offline
I am trying to hide some default parameters from the original node ui,
I am doing this but I don't get to see the result, or errors

#getting the template
null_tg = null.parmTemplateGroup()
#finding and hiding
copy_parm_template = null_tg.find(“copyinput”)
copy_parm_template.hide(True)
# or
copy_parm_template.hide(0) # argument ‘ on ’as in the documentation fail
#setting the template
null.setParmTemplateGroup(null_tg)

i read something about replacing the parm? or something like that?
User Avatar
Member
99 posts
Joined: June 2011
Offline
I'm not sure why parmtemplate.hide() doesn't work. But this should work.


#getting the template
null_tg = null.parmTemplateGroup()
#finding and hiding
copy_parm_template = null_tg.find(“copyinput”)
null_tg.hide(copy_parm_template, True)

#setting the template
null.setParmTemplateGroup(null_tg)


Cheers
-J
User Avatar
Member
562 posts
Joined: Aug. 2008
Offline
thanks, i wasnt setting it right,
this is a method for the parm template group,
i was using it in the parm template instead.

thanks .
  • Quick Links