Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Reversing an animation?

  • Reversing an animation?

    Posted by Ilia Kotchen on August 21, 2014 at 3:56 am

    Hi all,

    This should be a fairly simple answer, but I just haven’t been able to get it solved.

    I have an object animating along a path. It animates from the first point to the last point as it should.

    My question is: Without redrawing the path in reverse, how can I make that object follow along the path from the last point to the first point instead?

    Here is my situation: I have a camera animating along the path and there are meant to be incoming objects animating along the same path. Although whenever I Auto Orient these objects, they will travel along that path in the same direction as the camera. I need them coming towards the camera instead.

    Thanks.

    Elnaz Johnson replied 10 years, 6 months ago 4 Members · 3 Replies
  • 3 Replies
  • Walter Soyka

    August 21, 2014 at 9:38 am

    [Ilia Kotchen] “I have an object animating along a path. It animates from the first point to the last point as it should. My question is: Without redrawing the path in reverse, how can I make that object follow along the path from the last point to the first point instead?”

    Alt+click the position stopwatch for the item you wish to reverse, and enter the following expression:

    // expression to reverse keyframe evaluation in time
    // i.e., the first keyframe will be used last, and the last will be used first
    // everything in between will also be reversed, because we will essentially run
    // time backwards in this property only

    // we need 2 or more keyframes on the property to be able to reverse them
    if (numKeys > 1) {

    // We're going to look at the current time, then figure out where it is in relation to the range of time
    // from the first keyframe to the last. We will store in t the interpolation of what that value would be
    // if that exact range of time were reversed, running backwards from the last frame to the first
    t = linear(time, key(1).time,key(numKeys).time,key(numKeys).time,key(1).time);

    // get the value of the property at the reversed time
    valueAtTime(t);
    } else value // if we have less than 2 keyframes, just return the underlying value

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • John Cuevas

    August 21, 2014 at 1:49 pm

    Not sure if this will help, but thought I would toss it out here, ReverseMaskPath

    Johnny Cuevas, Editor
    Thinkck.com

    “I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work.”
    —THOMAS EDISON on inventing the light bulb.

  • Elnaz Johnson

    November 4, 2015 at 9:21 am

    great solution!!!
    Is it possible to select keyframes and right-click on them and then select reverse keyframes ?
    does this solution works ?

    I found a website that contains After Effects Template for download:
    https://www.digiphic.com

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