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

Lightwrap in After Effects

Thumbnail for: Lightwrap in After Effects
This brief tutorial covers the compositing technique of light wrapping.
After Effects CS4
Keying
Video-/Tutorials

Views: 247
Permalink
posted by jamie on Jan 13, 2012

Lightwrap Preset

Thumbnail for: Lightwrap Preset
This is a preset that you can use on green screen footage or just general compositing.
After Effects CS5
Keying
Presets (ffx)

Views: 205
Permalink
posted by jamie on Jan 13, 2012

3D Cube Creator

Thumbnail for: 3D Cube Creator
This script is used to create a 3d cube. You can later replace the different sides and spin the null around for easy animation.
After Effects CS3
3D
Scripts (jsx)

Views: 2318
Permalink
posted by MicGyver on Nov 11, 2011


 

 

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

 

 

motion graphics eXchange - Get The Search Engine