-
Move object between 3 different positions using slider control.
Im currently working on an animation which includes having the characters ears go up and down depending on his expressions (happy/ sad etc).
Ive currently managed to link both ears to a single slider that will move the ears up and down between 2 points: A: [2243.0,324.6] and B [2342.8,582.0], the code im using for this is:
S=thisComp.layer(“Null 2”).effect(“Slider Control”)(“Slider”);
A= [2243,324.6];
B= [2342.8,582];
linear(S,0,100,A,B)However i want to insert a 3rd point so when the slider is at 50 (half way) the ear will be at [2366.9,501.6].
The code i tried was:
S=thisComp.layer(“Null 2”).effect(“Slider Control”)(“Slider”);
A= [2243,324.6];
B= [2366.9,501.6];
C= [2342.8,582];
linear(S,0,100,A,B,C)But as i dont really understand what im saying there its not too surprising that the code didnt work.
Anyhelp at all would be very grateful. Thanks 🙂