Move layer based on final position

Moderators: Disciple, zlovatt

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

May 11th, 2012, 3:15 pm

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: 319
Joined: June 26th, 2004, 10:01 am
Location: Folsom, CA
Contact:

May 13th, 2012, 12:53 pm

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

May 14th, 2012, 6:51 am

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

SteveB
Post Reply