Jump to content

"Bind" two buttons together


JJ FX

Recommended Posts

Hi,

So I need to somehow "bind" two buttons together, but only one direction relation. When I press A, the B need to run too. I was hoping "pase relative references" would do (the button is a 0 - 1 state, so why not), but unfortunately not.

Do I need to use somekind of callbacks for that? Any example would be most owesome.

Edited by JJ FX
Link to comment
Share on other sites

So I've found this:

hou.parm('myNodeA/myButtonA').pressButton()

And this has to probably go to button B (A -> B ) into callback script, right?

What if I already have there something in callback script in button B... ?

Edited by JJ FX
Link to comment
Share on other sites

you can also do a right click copy parameter, paste relative parameter references,
but this does not work with buttons directly, instead paste them on a dummy node on the same hierarchy level, and then copy the resulting hexpression.
right click on the button, go to edit parameter expression and paste it there.

in that way it should work too.

also if you want multiple callbackscripts on one button, just add a ";" in between :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...