AE ENHANCERS

Expressions/Scripts/Presets
It is currently Wed Apr 16, 2014 6:23 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Help with Elastic Snap Expression
PostPosted: Wed Dec 05, 2007 11:19 pm 
Offline

Joined: Wed Dec 05, 2007 1:18 pm
Posts: 1
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 ];

}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group