Sub topic 11
Polishing motion: overshoot, settle and removing pops
This chapter covers three finishing techniques in the Graph Editor: adding overshoot, settling into the final pose, and removing pops. It assumes you can insert keyframes, switch interpolation and handle types, and move keys and handles with G, R and S. If you need a refresher, see the chapters on Bezier handles and easing.
Why blocked motion still looks wrong
Roughly timed keys with Bezier interpolation produce motion that is correct but dull. The curve eases smoothly into every key, so nothing seems to have weight or energy. Real objects overshoot their target, rebound, and settle. Abrupt changes in speed that nobody intended look like pops.
All three problems show up as shape in the F-curve. Speed is the slope of the curve, so you can fix the motion by reshaping the curve.
Overshoot
Overshoot means the value passes the target before coming back. In the Graph Editor the curve rises above the final key's value, then drops down to it.
There are two ways to get it.
- Add a key past the target. If the object should end at X = 4, add a key at about X = 4.4 a few frames before the final key. Then key X = 4 at the end. This is easy to control and survives handle changes.
- Pull the handles. Select the final key, press V and choose Free or Aligned. Drag the left handle up so the curve arcs above the key's value before arriving at it.
Handle type matters here. Auto Clamped handles are flat at local peaks and valleys, so a curve through three keys never exceeds the highest or lowest key value. That makes Auto Clamped safe against accidental overshoot, but it cannot give you any. Use an extra key with Auto Clamped, or switch the key to Free or Aligned for handle-based overshoot.
Settle
Settle is what happens after the overshoot. The object swings back and forth with smaller and smaller amplitude until it rests. On the curve it looks like a damped wave: each peak is lower than the one before.
A workable recipe for a move that ends at value 4:
| Frame | Value | Role |
|---|---|---|
| 1 | 0.0 | Start |
| 10 | 4.4 | First overshoot |
| 16 | 3.8 | Rebound below target |
| 20 | 4.1 | Small overshoot |
| 24 | 4.0 | Rest |
Each peak is about half the size of the previous one: +0.4, then −0.2, then +0.1. The gaps between peaks stay roughly equal, which keeps the oscillation rhythm steady. Real settling slows slightly as it decays, so you can stretch the last gap a little.
With Auto Clamped handles, every key in this table is a peak or a valley, so each one gets flat handles automatically. That gives a clean wave without any handle editing.
The script below builds this curve. It requires a selected object, and it uses action.fcurves, which applies to Blender versions before the slotted-actions change. Check the API docs for your version.
import bpy
obj = bpy.context.object
obj.animation_data_clear()
# (frame, X location): overshoot, rebound, small overshoot, rest
keys = [(1, 0.0), (10, 4.4), (16, 3.8), (20, 4.1), (24, 4.0)]
for frame, x in keys:
obj.location = (x, 0.0, 0.0)
obj.keyframe_insert(data_path="location", frame=frame)
fcurve = obj.animation_data.action.fcurves.find("location", index=0)
for kp in fcurve.keyframe_points:
kp.interpolation = 'BEZIER'
kp.handle_left_type = 'AUTO_CLAMPED'
kp.handle_right_type = 'AUTO_CLAMPED'
fcurve.update()
print([round(fcurve.evaluate(f), 2) for f in (1, 10, 16, 20, 24)])The final print shows the curve's value at each key frame, which should match the table.
Applying polish to a whole animation
Do not polish every channel the same way. Heavy or large objects overshoot less and settle quickly. Light or springy ones overshoot more and ring longer. Also offset the timing between channels. If Y and Z settle a frame or two after X, the motion feels less mechanical. Select a channel's keys and press G, then move them a frame or two, with the mouse over the graph area.
When a curve is tiny next to others, use Normalize or View Selected so you can see the overshoot shapes. Normalize only changes the display, not the data.
Removing pops
A pop is a sudden visual jump or change in speed that you did not intend. Find the cause by looking at the curve at the moment of the pop.
Steps and constant interpolation
A vertical step means the value changes between two adjacent frames. Check whether a key has Constant interpolation, which holds the value then jumps. Select it and press T to choose another mode. Constant is correct for deliberate holds, such as a light switching on, so only change it where the jump is a mistake.
Corners from mismatched handles
A corner appears when the left and right handles at a key point in different directions. This is a sudden change of speed. Vector handles and Free handles can both cause it. Select the key and press V, then choose Aligned to keep the two handles on one line, or Auto Clamped to let Blender compute them. Linear interpolation also has corners at every key by design, which can read as a pop on slow moves.
Euler rotation flips
Euler rotation values are stored as plain angles. A rotation key at 179° followed by one at −179° makes the curve travel the long way round, about 358°, in one interval. Fix the curve with Key > Discontinuity (Euler) Filter in the Graph Editor, with the rotation channels selected. It adjusts the keys by multiples of 360° so they take the short path. Do this after the keys are in place, since new keys can reintroduce a flip.
Loop seams
When a motion repeats, the first and last keys must have the same value, and the curve must leave and arrive at the same slope. Otherwise the loop pops at the seam. You can duplicate the first key to the last frame and align the handles. Alternatively, add a Cycles modifier, which repeats the keyed range. The modifier does not fix a mismatch. If the first and last values differ, the seam still pops.
Checking for pops with Python
Looking at a curve can miss small velocity jumps. This script compares the speed just before and just after every interior key, and prints any key where the speed changes sharply. It uses action.fcurves as above, so the same version note applies.
import bpy
obj = bpy.context.object
fcurve = obj.animation_data.action.fcurves.find("location", index=0)
EPS = 0.01 # sample distance in frames
THRESHOLD = 0.05 # speed change per frame that counts as a pop
for kp in fcurve.keyframe_points:
frame = kp.co.x
speed_in = (fcurve.evaluate(frame) - fcurve.evaluate(frame - EPS)) / EPS
speed_out = (fcurve.evaluate(frame + EPS) - fcurve.evaluate(frame)) / EPS
jump = abs(speed_out - speed_in)
if jump > THRESHOLD:
print(f"Frame {frame:.0f}: speed changes by {jump:.2f} per frame")Run it on the settle curve from earlier and it reports nothing, because Auto Clamped handles give a smooth tangent at every key. Switch a key to Vector handles and rerun, and that key is flagged. The first and last keys also compare against extrapolated values, so treat their results with care.
A reliable polish order
- Block the main poses with the timing you want.
- Set handle types so the base motion is smooth, usually Auto Clamped.
- Add overshoot and settle keys on the channels that need them.
- Offset related channels by a frame or two.
- Run the Euler filter on rotation channels.
- Scrub and play back, then hunt for pops at the frames where the curves have corners or steps.
Polish last, after timing is approved. Moving keys later breaks the spacing you tuned.
Exercise
A cube moves from X = 0 to X = 4 over frames 1 to 12 with Auto Clamped handles. You pull the final key's handle upward but the curve never goes above 4. Why, and how do you get overshoot?
Show answer
Auto Clamped handles are kept flat at the key's value, and Blender resets them when you edit them, so the curve cannot go above the highest key. To get overshoot, either insert an extra key above 4 (for example 4.4 near frame 9) and let the last key return to 4, or change the final key's handle type to Free or Aligned with V and then drag the handle.
Exercise
A character's arm spins a full turn backward in one frame at frame 30, where the keys are 175° and −175°. Name the tool that fixes this and say where you find it.
Show answer
The Discontinuity (Euler) Filter, in the Graph Editor's Key menu. Select the arm's rotation channels first. The filter shifts the key values by multiples of 360° so the rotation takes the short path.