How To Use Inertial Bounce Expression in After Effects
May 16, 2024 · Mike Murphy
This tutorial will show you how to use the Inertial Bounce Expression to add bouncing motion to any property from one keyframe to the next based on velocity Adobe After Effects CC 2024.
Adobe After Effects CC 2024: How To Reverse Paste Keyframes
**Description:
**This tutorial will show you how to use the Inertial Bounce Expression to add bouncing motion to any property from one keyframe to the next based on velocity Adobe After Effects CC 2024.
Keyboard Shortcuts:
UU: Reveal All Keyframes
EE: Reveal All Expressions
Cmd/Ctrl + D: Duplicate
P: Position Property
S: Scale Property
R: Rotation Property
T: Opacity Property
Expression Source:
Intertial Bounce v1.2
Inertial Bounce Expression:
amp = .1;
freq = 2.0;
decay = 2.0;
n = 0;
time_max = 4;
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 && t < time_max){
v = velocityAtTime(key(n).time - thisComp.frameDuration/10);
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{value}
Variables To Customize:
amp = .1;
freq = 2.0;
decay = 2.0;
———————
To try or buy Adobe After Effects CC 2024:
https://mikemurphy.co/adobe (affiliate link)
⭕️ Check out my new Domestika Course on Adobe Audition:
https://mikemurphy.co/domestika
——————
Chapters:
00:00 Intro: About The Tutorial
00:22 Expression In Description of Tutorial
00:32 Expression + Transform Properties
01:01 How To Add Inertial Bounce Expression
01:11 Add To Position Property
01:35 Add To Scale, Rotation & Opacity
01:59 Preview Bounce Expression On All Properties
02:11 Customize Expression
02:39 How To Add Slider Controls
02:54 Duplicate & Rename Slider Controls
03:25 Expression Pick-whip To Slider Control
04:04 Manually Change Values of Slider Controls
04:28 Benefit of Slider Controls
**Software Used:
**Adobe After Effects CC 2024 (Click To Try or Buy)
How Add Expression To Transform Properties:
- Create New Composition (1920 x 1080, 10 seconds)
- Add Graphic such as logo animating
- Animate on Position, Scale, Rotation and/or Opacity Properties
- Copy Inertial Bounce Expression to Clipboard (Cmd/Ctrl + C)
- Select Layer & Tap UU To Reveal All Keyframes
- Hold Option/Alt and click on stopwatch next to each property
- Past Inertial Bounce Expression (Cmd/Ctrl + V)
How To Add Slider Controls:
- Select Animated Layer
- Go to Effect Menu and then ‘Expression Controls’
- Click on ‘Slider Control’
- Duplicate Slider Control in ‘Effect Controls’ for each property with Expression added
- Rename Slider Controls to match Amplitude, Frequency, Delay for each Property (ex. Position-Amp, Position-Freq., Position-Decay
How To Connect Expression To Slider Controls :
- Select Animated Layer
- Tap EE to Reveal All Expressions
- Click in the Expression Editor on the Timeline
- Select/Highlight value for ‘amp=’
- Drag Expression Pick-whip to Slider Control
- Select/Highlight value for ‘freq=’
- Drag Expression Pick-whip to Slider Control
- Select/Highlight value for ‘decay=’
- Drag Expression Pick-whip to Slider Control
- Repeat for each variable, property & Slider Control
- Manually change values of all Slider Controls to original values in Expression
- Customize to taste
- Tap Spacebar to Preview