Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to move text layers based on their end of the layer?

  • How to move text layers based on their end of the layer?

    Posted by Tuong Tran on December 20, 2019 at 6:30 am

    Hi, I’m new to AE expression. I wanted to move a text from position a to position b in a linear speed. Position b is locked to the final frame of a text layer and postion a is a set valuable based on Position value[0] and value[1]. Duration is 9.5 seconds before that final layer frame. I tried to write something like this but it’s not working:

    duration = 9.5; // Duration of animation in seconds
    posa = [value[0]-300,value[1]+300]; // Start position
    posb = [value[0],value[1]]; // End position
    Math.round(linear(time,outPoint-duration,outPoint,posa,posb))

    Andrei Popa replied 6 years, 8 months ago 2 Members · 1 Reply
  • 1 Reply
  • Andrei Popa

    December 26, 2019 at 6:16 pm

    Try it like this.


    duration = 9.5; // Duration of animation in seconds
    posa = [value[0]-300,value[1]+300]; // Start position
    posb = [value[0],value[1]]; // End position
    linear(time,outPoint-duration,outPoint,posa,posb)

    Andrei
    My Envato portfolio.

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