Make it bounce in After Effects – Boing!

Being primarily an editor, things like expressions and command line code tend to intimidate me.  However, some expressions are so easy to use and already developed that I sometimes can’t resist but try them.  One of my co-workers was using this Inertia expression a lot recently so I thought I’d give it a shot.

It gives a rubbery aesthetic to your animation.

To apply the expression copy the expression below, option + click the stopwatch on the parameter you want to affect, and paste.

This expression allows you to over extend a keyframe value and it will naturally settle back into place.  I have used it for scale, position, and rotation.  It works great and is super simple.  The only values that you need to adjust to your liking are the amp, freq, and decay.

Inertia from Chadwick Shoults on Vimeo.

// Inertial Bounce (moves settle into place after bouncing around a little)
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);
amp = .05;
freq = 4.0;
decay = 2.0;
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{
value;
}
About these ads
  1. This is great, thanks for sharing.

    • Sethermidus
    • June 4th, 2012

    Can you make individual letters have a rubbery bounce to them, and make them flip and stuff? I cant find a tut on it ANYWHERE.

  2. Nice! Also works well when applied to camera position keyframes.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: