Visualtricks
02-12-2010, 08:05 PM
Hi everyone !
I'm a little stuck..maybe i'm drowning in a inch of water but.. you know..i'm looping :)
I've a little xpresso setup attached to a null with some userdata sliders and stuff, let's say i have value1, value2 and a button. What i'm trying to do is to lock the ratio between the two values but only while the button is checked, pretty much like the lock ratio in render setting output panel. The only difference here is that the values are passed to a coffee node that should do some math to keep the ratio constant.
So far i've managed to store the ratio value at the moment the button is checked (with a freeze node) and this kind work but in a strange way. I'm still confused on how to code the coffee node, or if maybe there's a better way, and how to make the sliders move together when ratio is locked..
Any help or advice is very much aprecciated, i will attach a simplified version of the setup.
Thanks!
Visualtricks
I'm a little stuck..maybe i'm drowning in a inch of water but.. you know..i'm looping :)
I've a little xpresso setup attached to a null with some userdata sliders and stuff, let's say i have value1, value2 and a button. What i'm trying to do is to lock the ratio between the two values but only while the button is checked, pretty much like the lock ratio in render setting output panel. The only difference here is that the values are passed to a coffee node that should do some math to keep the ratio constant.
So far i've managed to store the ratio value at the moment the button is checked (with a freeze node) and this kind work but in a strange way. I'm still confused on how to code the coffee node, or if maybe there's a better way, and how to make the sliders move together when ratio is locked..
Any help or advice is very much aprecciated, i will attach a simplified version of the setup.
Thanks!
Visualtricks
