Page 1 of 1

Move layer based on final position

Posted: May 11th, 2012, 3:15 pm
by SteveB
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.

Re: Move layer based on final position

Posted: May 13th, 2012, 12:53 pm
by Dan Ebberts
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

Re: Move layer based on final position

Posted: May 14th, 2012, 6:51 am
by SteveB
Dan,
That's perfect! Thank you so much.

SteveB