Jump to content
Sign in to follow this  
JJ FX

"Bind" two buttons together

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

Share this post


Link to post
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

Share this post


Link to post
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 :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×