LukeyG213 Posted May 15, 2014 Share Posted May 15, 2014 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 Quote Link to comment Share on other sites More sharing options...
edward Posted May 16, 2014 Share Posted May 16, 2014 Where are you doing the disable when right now? Quote Link to comment Share on other sites More sharing options...
LukeyG213 Posted May 16, 2014 Author Share Posted May 16, 2014 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 Quote Link to comment Share on other sites More sharing options...
edward Posted May 19, 2014 Share Posted May 19, 2014 Try using hou.ParmTemplate.setConditional() with hou.parmCondType.HideWhen Quote Link to comment Share on other sites More sharing options...
LukeyG213 Posted May 23, 2014 Author Share Posted May 23, 2014 Ahh that is exactly what I was looking for! Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.