PDA

View Full Version : making a slider dependent to an other?


nanni700
05-21-2007, 09:06 AM
Hi,
how can i make a slider be dependent from an other, e.g. in the settings of a resize node sliding the x-value will keep the y-slider in the correspondent position (= the aspect ratio of the image). Is this posible?

Thanks a lot,
nanni700

scrimski
05-21-2007, 10:12 AM
Click on the small + and enter the variable for the x value into the y value ie for Scale it would be xScale.
The definitions for the variables can be found in the manual.

osxrules
05-22-2007, 05:22 PM
Hi,
how can i make a slider be dependent from an other, e.g. in the settings of a resize node sliding the x-value will keep the y-slider in the correspondent position (= the aspect ratio of the image). Is this posible?

This is one of Shake's best features IMO.

What you can do is take the initial values, let's say 640x480 and in the yScale just enter xScale*480/640. This way you don't have to worry about working out the aspect ratio value and rounding if it's a complex ratio.

If your equations get complicated, you can also use arbitrary variables to simplify them. Right-click the parameter panel and you can add a local variable. Then if you need to say reference an external node like Move3D37.xScale, you can assign it a name like x and in other equations within the node, you just call x. You can also change the value of x without messing up your equation.

nanni700
05-28-2007, 08:08 PM
Thanks osxrules,
it works!

nanni

CGTalk Moderation
05-28-2007, 08:08 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.