motion graphics eXchange
top

Intertial Bounce

Thumbnail for: Intertial Bounce
Essentially, Inertial Bounce creates a bouncing motion of any parameter from one keyframe to the next, based on its velocity.
After Effects CS3
Useful things
Expressions

Views: 10330
Permalink
visit |  download |  share this  error? 
Being that true "velocity" includes the vector (or traveling direction in 3D space), the bounce happens in whatever direction the object is traveling. This also accounts for scalar or array values, so you'll find that this expression works just as well on 2D rotation as it does on 3D position. It's very cool!

This expression is a bit of a community effort. The seeds were certainly planted by the great Dan Ebberts, and then a modified version was posted on mograph.net. Although I've made a slight modification to it to make it a little more user friendly, it's nothing that I will lay claim to as my own code. Nonetheless, it's a great helper and I use it all the time.

Modify "amp" for the amplitude or how much bounce is present. The variable "freq" is the frequency, or how frequently the bounce occurs. The "decay" is like a friction or mass setting, a higher value means a shorter decay over time.
amp = .1;
freq = 2.0;
decay = 2.0;

n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time){
n--;
}}

if (n == 0){ t = 0;
}else{
t = time - key(n).time;
}

if (n > 0){
v = velocityAtTime(key(n).time - thisComp.frameDuration/10);
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{value}
by Harry J. Frank, graymachine.com


(Min. Version: After Effects CS3, Category: Useful things, Type: Expressions)
posted by MadDocc on Feb 24, 2010

 

Related topics:

Folding Template

Thumbnail for: Folding Template
folding and unfolding template free to use.
Require After Effects CS6
After Effects CS6
Other
Projects (aep)

Views: 19526
Permalink
posted by fsimoni on Nov 05, 2012

Product, Service or App Promotion

Thumbnail for: Product, Service or App Promotion
After Effects Template. Promote your app, product or service
After Effects CS5
Useful things
Projects (aep)

Views: 9711
Permalink
posted by RedSpikeFx on Oct 30, 2012

Clean Logo V2

Thumbnail for: Clean Logo V2
After Effects CS4,CS5,CS5.5 and CS6 template logo reveal
After Effects CS4
Other
Projects (aep)

Views: 12607
Permalink
posted by aedaddy on Aug 19, 2012


 

 

follow us on http://twitter.com/mgxchangegoogle+get in touch on facebook

 

 

Full length video training series presented by motion graphics industry professionals. Click here to visit Motionworks website!