PDA

View Full Version : Control a speed expression with a slider


Tricky4D
07-01-2003, 10:31 PM
Can anyone help please.


I want to control the oscillation of the rotation of a bone on Y axis.

I have set up the oscillation of the bone via using the expression

sin( Fc * 20 ) * 70 on root.kine.local.roty

20 = the speed value


Is there anyway of controlling the speed '20' by putting it into a slider to vary the speed up and down.

This is a bit like the beating of wings in a bird that I'm trying to achieve.

:hmm:

ThE_JacO
07-01-2003, 11:18 PM
create and use a custom parameter.

Tricky4D
07-02-2003, 12:53 AM
Hi The Jaco,

Thanks for the reply, but could you be a little more descriptive.

I know how to make a slider, but perhaps I didn't make my description clearer..

I would like to control the speed variable value by the slider, but the variable is embedded in to the expression, so how do I link the slider to change the value of that variable??

Hope you can help out.

Cheers

tachy0n
07-02-2003, 02:10 AM
Create a custom parameter, using Create->Parameter->New Custom Parameter. Set it's range/type and name it something like 'Speed'

Now in your expression, change it to something like:

sin( Fc * root.CustomPSet.Speed ) * 70

Tricky4D
07-02-2003, 01:44 PM
Thanks for the info.... Got is sorted now. cheers:thumbsup:

CGTalk Moderation
01-15-2006, 01:00 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.