I was hoping someone might be able to help me with the syntax of using the ‘Disable When’ component in the Edit Parameter Interface of the parameter name “disable_parm” that I put in the sphere1 node.
I've tried many different approaches after looking through a number of searches and still no luck.
The one I currently have is an extract of an expression that does work if I use it in a parameter, meaning I can return a value of the ‘test’:
if hou.node("../null1").isGenericFlagSet(hou.nodeFlag.Display) == 1:
return 1However if I put the following in the Disable When, not only does it not work, but after clicking on ‘Accept’ it adds backspaces to the code.
Apply and Before Accept(does not work):
{ hou.node("../null1").isGenericFlagSet(hou.nodeFlag.Display) == 1 }Apply and After Accept(does not work):
{ hou.node(\"../null1\").isGenericFlagSet(hou.nodeFlag.Display) == 1 }Thanks for any insight
