Expressions/Scripts/Presets

Moderators: Disciple, zlovatt

 
Cyrus
Topic Author
Posts: 1
Joined: Wed Dec 05, 2007 1:18 pm

Help with Elastic Snap Expression

Wed Dec 05, 2007 11:19 pm

If I want this expression to move as a Y position animation.
How do I do that?

link:http://aefreemart.com/2006/06/16/elastic-snap-expression/

displace = 600 ; //user enters # of pixels to move

startBounce = marker.key(1).time;
speedFactor = 1 + (startBounce - inPoint) ;
veloc = (displace / 50) / speedFactor ;
amplitude = ( displace / 3) / speedFactor;
decay = 3;

t = time - startBounce;

if (t < 0){ value + linear(time, 0, startBounce, 0, displace)

}else{

x = amplitude*Math.cos(veloc*t)/Math.exp(decay*t)-amplitude;

value + linear(time , 0, startBounce, 0, displace) + [ x , 0 ];

}

Who is online

Users browsing this forum: No registered users and 3 guests