Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Animating Expressions?

  • Animating Expressions?

    Posted by Jon Smith on January 19, 2011 at 7:23 pm

    I’m trying to figure out how to specify positions at specific times. For example: I have 2 positions that I want an object to travel between. So it starts at position A then travels to position B in 2 secs.

    This is just an example of what I’m trying to do. The Timing and positions will constantly change so I want to use an expression to define them.

    Thanks
    -jon

    Jon Smith replied 15 years, 3 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    January 19, 2011 at 8:02 pm

    Like this maybe:

    pos1 = [100,100];
    pos2 = [200,200];
    time1 = 1;
    time2 = 3;
    linear(time,time1,time2,pos1,pos2)

    Dan

  • Jon Smith

    January 22, 2011 at 2:27 pm

    Thanks you sir, That works beautifully.

    A second part to that: Is there a way to tell a parameter to be a certain value at one time and another value at another time?

    Basically similar to setting hold keyframes.

    so at
    0 sec = 100
    1 sec = 200

    but without the linear change?
    I tryed to use AE expression reference library but it’s so hard to find what I’m looking for.

    Thanks again.

  • Jon Smith

    January 22, 2011 at 3:02 pm

    I finally figured it out with a if/else stament. Thanks for the help Dan.

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