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

Moderators: Disciple, zlovatt

Post Reply
jasonmorice
Posts: 6
Joined: January 8th, 2008, 6:10 pm

February 1st, 2009, 6:47 pm

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.
Paul Tuersley
Posts: 704
Joined: June 5th, 2004, 7:59 am
Location: London, UK

February 2nd, 2009, 12:59 am

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);
jasonmorice
Posts: 6
Joined: January 8th, 2008, 6:10 pm

February 2nd, 2009, 5:12 pm

Cheers dude, thats what I was looking for. :| :) :D 8)
Post Reply