Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Move an object along the x axis over a designated number of frames

  • Move an object along the x axis over a designated number of frames

    Posted by Mike Tosetto on May 31, 2012 at 2:15 am

    Hi there.

    I’m a bit stuck with the solution for this. I have a number of objects on a grid and want to move them tighter together as I pull the camera back.

    I’m hoping some kind of expression might do the trick.

    I need to move an object along the x axis for say 100px over a period of 25 frames.

    I’ve got this so far but unfortunately this creates continuous movement.

    Any help as always is much appreciated.

    Cheers

    Mike

    x = (time / thisComp.frameDuration) * 10;

    value + [x, 0]

    miketosetto dot com | bestiacollective dot com

    Mike Tosetto replied 14 years, 2 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    May 31, 2012 at 2:39 am

    Something like this:

    tStart = 1; // start move at 1 sec.
    numFrames = 25; //move for 25 frames
    dist = 100; //move 100 pixels
    x = linear(time,tStart,tStart+framesToTime(numFrames),0,100)
    value + [x,0]

    Dan

  • Mike Tosetto

    June 1, 2012 at 12:45 am

    Dan, I mean this with the absolute utmost respect, you are a freak with this stuff. Thanks so much.

    Thanks so much.

    I don’t know if this next question is pushing the friendship, but is it possible to ease with expressions?

    Thanks again Dan 🙂 🙂 🙂

    miketosetto dot com | bestiacollective dot com

  • Dan Ebberts

    June 1, 2012 at 12:54 am

    In the previous example, just change “linear” to “ease” (or “easeIn” or “easeOut”). See the Interpolation Methods section in the expressions chapter of AE Help.

    Dan

  • Mike Tosetto

    June 1, 2012 at 1:20 am

    Ah yes of course, shouldn’t have missed that. Thanks again Dan. It works a treat

    miketosetto dot com | bestiacollective dot com

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