Page 1 of 1

How do I set up a slider for 2 layers rotation?

Posted: February 1st, 2009, 6:47 pm
by jasonmorice
Sorry if this is a simple question but I need to set up a slider to control the opening and closing of a beak (2 layers, top beak and bottom beak).
When the slider is at 100 the mouth is open and when its at 0 its closed. Beaks rotational values are both 0 at closed position and -17 and 23
respectively at open position.

Cheers in advance for any help...

Jase.

Re: How do I set up a slider for 2 layers rotation?

Posted: February 2nd, 2009, 12:59 am
by Paul Tuersley
You can use linear() to convert one set of values to another. Apply something like this to each beak layer's rotation:

Code: Select all

slider = thisComp.layer("control layer").effect("beak slider")("Slider");
linear(slider, 0, 100, 0, -17);

Re: How do I set up a slider for 2 layers rotation?

Posted: February 2nd, 2009, 5:12 pm
by jasonmorice
Cheers dude, thats what I was looking for. :| :) :D 8)