I have a problem with the Maya interface. I want to hide a parameter when the user clicks a button. In Houdini it works fine, but in Maya if I click the button nothing happens, only when I sync the asset the parameter is hidden.
So, is there a way to call sync asset from the function in the hda?
Just for test I'm using this code to hide/unhide the parameter:
def test(): node = hou.node("..") parm = hou.parm("../TestParm") if parm.isHidden(): parm.hide(0) else: parm.hide(1)