Call Sync Asset from Houdini

   2629   2   2
User Avatar
Member
2 posts
Joined: Feb. 2017
Offline
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)
User Avatar
Member
818 posts
Joined: Sept. 2013
Offline
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.
Andrew / アンドリュー
User Avatar
Member
2 posts
Joined: Feb. 2017
Offline
I see. Thank you.
  • Quick Links