Activity › Forums › Adobe After Effects Expressions › How to change the position of an object with easy movment with expresions
-
How to change the position of an object with easy movment with expresions
Marcelo Cabral replied 15 years ago 2 Members · 12 Replies
-
Dan Ebberts
September 7, 2011 at 4:44 pmI had the ease backwards. This might help:
center = [thisComp.width,thisComp.height]/2;
dur = .2;
v = value;
if (marker.numKeys > 1 && time > marker.key(2).time){
t = time - marker.key(2).time;
v = easeIn(t,0,dur,center,value);
}else if (marker.numKeys > 0 && time > marker.key(1).time){
t = time - marker.key(1).time;
v = easeOut(t,0,dur,value,center);
}
v
Dan
-
Marcelo Cabral
September 7, 2011 at 11:53 pmHi Dan
Thanks for all. The expression works really good.
I appreciate your help.Best regards
Marcelo
Reply to this Discussion! Login or Sign Up