Move layer based on final position

Moderators: Disciple, zlovatt

Post Reply
SteveB
Posts: 14
Joined: February 27th, 2007, 8:45 am

Is there an expression that could be applied to any layer, at any position, that would then take that layer's current position, have it start at a lower vertical position (say 30 pixels lower) and have it move up to the current position in a set amount of time? I have dozens of text layers that I need to do this to. It would be great if there was a simple expression I could just apply to each layer rather than manually setting each layers keyframes. Not to be greedy, but an easing function would be great as a part of it, too.

Thanks.
Dan Ebberts
Posts: 320
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

This should work:

tStart = inPoint; // time to start (seconds)
tDur = .5; // time to move
yOffset = 30; // amount to move
ease(time,tStart,tStart+tDur,value+[0,yOffset],value)


Dan
SteveB
Posts: 14
Joined: February 27th, 2007, 8:45 am

Dan,
That's perfect! Thank you so much.

SteveB
Post Reply