FORUMS: list search recent posts

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

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mike Tosetto
Move an object along the x axis over a designated number of frames
on May 31, 2012 at 2:15:58 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


Return to posts index

Dan Ebberts
Re: Move an object along the x axis over a designated number of frames
on May 31, 2012 at 2:39:32 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



Return to posts index

Mike Tosetto
Re: Move an object along the x axis over a designated number of frames
on Jun 1, 2012 at 12:45:07 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


Return to posts index


Dan Ebberts
Re: Move an object along the x axis over a designated number of frames
on Jun 1, 2012 at 12:54:52 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



Return to posts index

Mike Tosetto
Re: Move an object along the x axis over a designated number of frames
on Jun 1, 2012 at 1:20:39 am

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

miketosetto dot com | bestiacollective dot com


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]