Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Animating between two positions with start and end time

  • Brie Clayton

    February 19, 2024 at 2:18 pm

    Hello Ronny!

    Can you give us an example of what you are attempting to do in this situation?

  • Ronny Traufeller

    February 19, 2024 at 3:33 pm

    sure, in this specific case i want to animate the position of a layer.

    (2 dimensional value)

    A = 0,0

    B = 500,200

    C = 1000, 1000

    (example)

    0 to 2 seconds

    from A to B

    4 to 6 seconds

    from B to C

  • Dan Ebberts

    February 19, 2024 at 4:11 pm

    There are a number of ways to set it up. This would probably be the most straightforward, brute-force method for the task as you’ve described it:

    A = [0,0];
    B = [500,200];
    C = [1000,1000];
    t1 = 0;
    t2 = 2;
    t3 = 4;
    t4 = 6;
    if (time < t3)
    linear(time,t1,t2,A,B)
    else
    linear(time,t3,t4,B,C)
  • Ronny Traufeller

    February 20, 2024 at 8:14 am

    hey Dan it seems like its working! thank

    i will put it to test now.

    all the best,

    Ronny

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