PDA

View Full Version : function to a slider?


pelos
06-11-2003, 06:54 AM
hello,
any body know how to set a function to a slider?
i have the center hip between to nulls, but how can i put this into a slider so i can animate it?
thanks

fxnut
06-14-2003, 05:31 AM
Hmm, not entirely sure I understand what you are getting at here.

Do you want to use a slider position in an expression? If so, what you need to do is go to 'Generic Plugins', and add a 'Master Channel' plugin, and call it, for example, 'SliderInput'. You can now create a slider using the usual methods, and select the channel 'MC: SliderInput'. Make sure you set a minimum and maximum value to an appropriate range for what you need.

Now you can make an expression that refers to this channel, and the slider will act as an input, e.g. if you wanted to slave the x position of an object to the slider from -0.5m to +0.5m, you would use the expression:

[MC.SliderInput] - 0.5

making sure that you'd set the min and max values of the slider to 0.0 and 1.0 respectively.

I hope this helps.

Regards

Andy