Sub topic 13
Interpolation Modes
This chapter assumes you can insert keyframes on object properties, move around the Timeline and Dope Sheet, and select keyframes there. It covers how Blender fills in the values between two keyframes and how to change that behavior.
What interpolation does
A keyframe stores a value at one frame. Blender does not store anything for the frames in between. It calculates those values when it evaluates the scene, using the interpolation mode of the keyframe on the left of each gap.
That last point matters. The interpolation mode belongs to a keyframe and controls the segment that starts at that keyframe and runs to the next one. The last keyframe on a channel has no segment after it, so its mode has no visible effect.
Suppose a cube has a Z location keyframe of 0 at frame 1 and 2 at frame 24. The mode on the frame 1 keyframe decides what the cube's height is at frame 12.
The common modes
| Mode | Behavior between two keys | Typical use |
|---|---|---|
| Constant | Holds the first value until the next key, then jumps | Stepped or blocking animation, on/off switches |
| Linear | Straight line at a steady rate | Mechanical motion, loops with no easing |
| Bézier | Smooth curve with handles, the default | Most organic motion |
Blender also offers easing and curve-based modes (Sinusoidal, Quadratic, Cubic, Quartic, Quintic, Exponential, Circular, Back, Bounce, Elastic). They are variations on shaping the curve between two keys. You choose them from the same menu, but they are easier to judge in the Graph Editor, which is the next topic.
Constant
With Constant, the value does not change until the next keyframe arrives. Then it snaps to the new value. Use it for things that should not blend, such as a light switching on, a visibility toggle, or a pose-to-pose "blocking" pass where you review poses before adding smooth motion.
Linear
With Linear, the value changes by the same amount every frame. A property going from 0 to 2 over 23 frames increases by about 0.087 per frame. Motion starts and stops abruptly at each key, which looks stiff for living things but suits a conveyor belt, a spinning fan, or a steady camera slide.
Bézier
Bézier is the default for new keyframes. Each key has two handles that shape the curve, so motion eases in and out. The result is smooth. The handle behavior is edited in the Graph Editor, so in the Dope Sheet you will mostly accept the defaults.
Reading interpolation in the Dope Sheet
The Dope Sheet draws a line between two keyframes when they hold the same value. If a channel shows a bar between keys, the value is held across that span. Interpolation mode itself is not drawn as a curve in the Dope Sheet, so you often confirm it by scrubbing the Timeline and watching the value change, or by opening the Graph Editor.
Changing interpolation in the Dope Sheet
- Hover over the Dope Sheet and select the keyframes you want to change. Press A to select all, or click and box select.
- Press T to open the Interpolation Mode menu. You can also use Key > Interpolation Mode in the header.
- Choose Constant, Linear, Bézier, or one of the easing modes.
The change applies only to selected keyframes, and only to the segment that follows each one. If you select just the last key on a channel, nothing visible changes.
A typical workflow is to block animation with Constant, check that poses and timing read well, then switch everything to Bézier for the smooth pass.
Changing the default for new keys
New keyframes take their interpolation from Edit > Preferences > Animation > Default Interpolation, which is Bézier unless you change it. Changing the preference does not alter existing keys. It also applies to your future files, so remember it if you share work with others.
Common errors
- The change seems to do nothing. Either the wrong keyframes were selected, or only the final key of the channel was selected. Select the key at the start of the segment you want to change.
- The animation looks like it pops. If a channel is still in Constant after blocking, values jump at each key. Select all and set Bézier or Linear.
- Motion overshoots or drifts with Bézier. Bézier handles can push a value past the keyed values. If a value must never go past the keys (for example a door that must not swing through a wall), use Linear, or fix the handles in the Graph Editor.
- Rotation looks wrong between two keys. Interpolation works on each channel's number separately. A rotation from 0 to 360 degrees passes through 180 degrees and looks like a spin. Interpolation is not choosing a "shortest path". This is because each Euler rotation channel is a plain number.
- Only some channels changed. Channels hidden by filters or collapsed groups may not be selected. Expand groups, or check that "Only Show Selected" is not hiding channels you meant to edit.
Setting interpolation with Python
The scripted equivalent of selecting all keyframes and choosing Linear is to loop over the F-curves of the active object's action.
import bpy
obj = bpy.context.active_object
action = obj.animation_data.action
for fcurve in action.fcurves:
for keyframe in fcurve.keyframe_points:
keyframe.interpolation = 'LINEAR'The value strings match the menu: 'CONSTANT', 'LINEAR', and 'BEZIER'. This code uses the F-curve access found in Blender 2.8 through 4.x. Newer versions with layered actions may access F-curves differently, so check the API documentation for your version.
To set only some keys, add a condition, such as checking keyframe.co[0] (the frame number) before assigning.
Trade-offs to keep in mind
- Constant makes review easy because each pose is visible and nothing blends. It is not a final look for moving objects.
- Linear gives exact, predictable values. It reads as mechanical and can look robotic on characters.
- Bézier looks natural. It gives you less direct control in the Dope Sheet and can overshoot, which you can only inspect properly in the Graph Editor.
Exercise
A cube has a Z location keyframe of 0 at frame 1 and 2 at frame 24, both set to Bézier. You want the cube to stay at 0 until frame 24 and then appear at height 2, with nothing in between. In the Dope Sheet, which keyframe do you select and which mode do you apply?
Show answer
Select the keyframe at frame 1 and press T, then choose Constant. The mode on a keyframe controls the segment that follows it, so the frame 1 key decides the values between frames 1 and 24. Changing only the frame 24 key would have no visible effect because nothing follows it.
Exercise
You switched all keys to Linear, but a bouncing ball still eases slightly at the top of each arc. Name one possible cause that is not related to the selected mode.
Show answer
Some keys were not selected, so they are still Bézier. Another possibility is that the last key of a channel was the only one selected, so no segment changed. Select all keyframes in the Dope Sheet with A and apply Linear again.