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: 653
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:

Split At Markers

Thumbnail for: Split At Markers
This script will split all selected layers on all markers between their in and out points.
After Effects CS3
Useful things
Scripts (jsx)

Views: 496
Permalink
posted by motion_love on Jul 19, 2010

Aged Film Using Particles

Thumbnail for: Aged Film Using Particles
A great way to take modern footage and turn it into vintage looking aged film, using particles.
After Effects 7 Pro
Useful things
Video-/Tutorials

Views: 960
Permalink
posted by Dave Scotland on Jul 15, 2010

Words2Layers jsx-script

Thumbnail for: Words2Layers jsx-script
Adobe After Effects Script that takes the contents of a selected text layer and creates new text layers with each word of the selected text layer. The text string is split at space characters.
After Effects CS3
Text-FX
Scripts (jsx)

Views: 714
Permalink
posted by vfx007 on Jun 26, 2010


 

 

follow us on http://twitter.com/mgxchangeget in touch on facebook

 

 

motion graphics eXchange - Get The Search Engine