Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Move layer at fixed speed, than stop

  • Move layer at fixed speed, than stop

  • Joseph Wentzel

    January 5, 2021 at 7:32 pm

    Hey all,

    I have a text layer moving up the screen at a fixed speed via expression (moving at 3 whole pixel values to avoid jitter and stuff); kind of like movie credits. I want to have a second text layer move up with the first (at the same speed), but stop before going off the screen.

    I can’t parent it, because I want it to stop part way up.

     

    The first text layer has the following position expression applied to it:
    [value[0], value[1] – time * 29.97 * 3];

     

    1080p 29.97fps Comp

    Any help is appreciated. Thanks

  • Robert Müller

    January 6, 2021 at 1:48 pm

    Hi Joseph, this will do the trick:

    max=500; //y value where you want your text to stop

    y=value[1] - time * 29.97 * 3;

    y<=max && (y=max);

    [value[0], y]

Viewing 1 - 2 of 2 posts

Log in to reply.

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