Jump to content

set hideWhen expression in parm python


LukeyG213

Recommended Posts

Hey guys,

 

I'm currently looking at using parmTemplates for some dynamic ui generation for a digital asset I am creating. It is easy to set the dsiable when expression for a paramter in the template but I cannot seem to find how to set the hide when expression. Does anyone have any experience with doing this and if so how to do it. I have been looking for a while but can't seem to find anything out about it.

 

Thanks in advanced

Link to comment
Share on other sites

I may not have made it very clear. I am trying to generate some new parameters using parmTemplates and icurrently after generating the parmTemplate i set the  disableWhen flag in python using setDisableWhen() on the parm template after I have done all my editing I then add the parmtemplategroup back to my node. What I can't seem to find however is a setHideWhen() function as this is whatr I really want to do rather than disable the parameter. I hope that clears things up slightly.

 

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...