Search - User list
Full Version: Call Sync Asset from Houdini
Root » Houdini Engine for Maya » Call Sync Asset from Houdini
vtrvtr
Hi.

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)
awong
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.
vtrvtr
I see. Thank you.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB