Creative Communities of the World Forums

The peer to peer support community for media production professionals.

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 pm

    Hi 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 pm

    I’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

  • Madli Man

    June 29, 2013 at 6:33 pm

    Yey! Thank you Mr Ebberts! 🙂 Problem Solved

  • Dan Ebberts

    June 29, 2013 at 7:35 pm

    Actually, 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 am

    Yes. 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.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy