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:
As you saw, the parameter interface is only updated during a sync. Unfortunately, there's no way to trigger a sync from parameter changes right now. The Maya plugin should probably try to detect these hidden/disabled parameters. I've submitted a RFE (84792) for this.