Activity › Forums › Adobe After Effects Expressions › animate to other layer position as target
-
animate to other layer position as target
Posted by Madli Man on June 29, 2013 at 5:51 pmHi forum,
Here is my situation.
i got here objectA position that need to animate to objectB position by expression.
Anyone help?
Thanks
Sorry for my english. 🙂Madli Man replied 12 years, 10 months ago 2 Members · 4 Replies -
4 Replies
-
Dan Ebberts
June 29, 2013 at 6:27 pmI’d say start with something like this:
moveDuration = 2;
moveStart = inPoint;
target = thisComp.layer(“objectB”).transform.position;
moveEnd = moveStart+moveDuration;
ease(time,moveStart,moveEnd,value,target.valueAtTime(moveEnd))Dan
-
Dan Ebberts
June 29, 2013 at 7:35 pmActually, that’s not the version I meant to post. That one heads directly for where objectB is going to be at intercept time. In this version, the tracking layer is always headed towards objectB:
moveDuration = 2;
moveStart = inPoint;
target = thisComp.layer(“objectB”).transform.position;
moveEnd = moveStart+moveDuration;
ease(time,moveStart,moveEnd,value,target)Dan
-
Madli Man
June 30, 2013 at 4:34 amYes. Thank you very much Mr Dan. Im studying alot expression. i can read and understand code but i cant write my own. i need kickstart code.
Thanks Dan.
Reply to this Discussion! Login or Sign Up