Sub topic 6
Interpolation: Constant, Linear, Bezier and the others
Interpolation is the rule Blender uses to fill in values between two keyframes. This chapter covers each mode, where to set it, and the mistakes that come up most often.
This chapter assumes you can insert keyframes with I, scrub the Timeline, and open the Graph Editor. You should also know that an F-curve plots one property value against time, as covered earlier in this tutorial.
What interpolation controls
A keyframe stores a value at one frame. Every frame between two keys has no stored value, so Blender computes one. The interpolation mode on the left key of each pair decides how that computation works.
That last point causes many confusions. Interpolation belongs to the key where a segment starts. The segment between key A and key B uses A's mode. B's mode only affects the segment that follows B.
The three basic modes
Constant
Constant interpolation holds the starting key's value until the next key's frame. At that frame the value jumps. The curve looks like a staircase.
Use it for:
- Blocking, where you want poses to read clearly without in-between motion.
- Switches such as visibility, on/off values, or a light turning on.
- Camera cuts driven by marker or camera-binding properties.
Linear
Linear interpolation draws a straight line between two keys. The value changes at a constant rate, so there is no acceleration or slowdown at either end. Speed changes abruptly at each key.
Use it for:
- Mechanical motion such as a constant-speed conveyor belt.
- Continuous rotation, such as a fan, when combined with linear extrapolation or a Cycles modifier.
- Timing tests, because the curve has no shape that hides a timing problem.
Bezier
Bezier is the default for most properties. The curve is a smooth spline. Each key has two handles, and the handles control how the curve enters and leaves the key. Because the curve can ease in and out, Bezier produces the natural acceleration that most organic motion needs.
Bezier gives you the most control, and it is also the mode with the most ways to go wrong. Handle shapes are covered in the next chapter.
| Mode | Segment shape | Speed behavior | Typical use |
|---|---|---|---|
| Constant | Flat step, then jump | Zero, then instant change | Blocking, switches |
| Linear | Straight line | Constant | Mechanical motion |
| Bezier | Smooth spline | Eases using handles | Most character and object motion |
Mathematical and physical modes
Blender offers more modes in the same menu. The mathematical ones are curve shapes with fixed formulas. They have no handles to adjust, though each has an easing setting.
| Mode | Shape | Notes |
|---|---|---|
| Sinusoidal | Sine-based curve | Gentle, close to Bezier with default ease |
| Quadratic | Squared curve | Mild acceleration |
| Cubic | Cubed curve | Stronger acceleration |
| Quartic | Fourth power | Stronger still |
| Quintic | Fifth power | Very sharp start or end |
| Exponential | Exponential growth | Extremely sharp change near one end |
| Circular | Quarter circle | Starts or ends almost vertically |
| Back | Overshoots the target | Pulls back before moving, or passes the target and returns |
| Bounce | Repeated rebounds | Looks like a dropped ball |
| Elastic | Oscillating spring | Wobbles around the target and settles |
The last three (Back, Bounce, Elastic) are the dynamic modes. They produce motion that would take several extra keys to build by hand. They also have extra settings, which appear in the Graph Editor sidebar (N) on the F-Curve tab under the active keyframe panel:
- Back has an Overshoot value. Larger values push the curve further past the target.
- Elastic has Amplitude and Period values. Amplitude is the size of the wobble, and Period controls how fast it oscillates.
- Bounce has no extra settings.
The ease direction for these modes is set with the Easing option, covered in its own chapter.
Setting interpolation in the Graph Editor
- Select the keys you want to change. Selecting a whole curve's keys changes every segment that starts at one of them.
- With the pointer over the graph area, press T to open the Set Keyframe Interpolation menu.
- Pick a mode.
You can also use the Key menu, then Interpolation Mode. The Dope Sheet has the same T shortcut, so you can change modes there too.
Two details are worth remembering:
- Changing the mode on the last key of a curve has no visible effect, because no segment starts there. The mode is stored and applies if you add a later key.
- If you select keys on several curves, the new mode applies to all of them at once.
Changing the default for new keys
New keys take their interpolation from Edit > Preferences > Animation > F-Curves > Default Interpolation. The factory setting is Bezier. If you block everything in Constant, changing this preference saves you from converting each key afterward. It affects newly inserted keys only. Existing keys keep their modes.
Reading the mode from the curve
You can identify the mode from the curve shape without opening a menu:
- A staircase means Constant.
- Straight segments with visible corners at keys mean Linear.
- Smooth segments with handle lines attached to keys mean Bezier.
- Smooth segments with no handle lines at a key mean a mathematical mode (the key's handles are hidden because they are not used).
Different segments on one curve can use different modes. A curve that is Bezier for the first half and Constant for the second half is normal.
Worked example: blocking, then smoothing
A common workflow starts with Constant and finishes with Bezier. You can try this on a cube.
- Insert location keys at frames 1, 12, 24, and 36 with different X values.
- In the Graph Editor, select all keys and press T, then choose Constant. Scrub the Timeline. The cube snaps between poses, so you can judge the timing without any in-between motion.
- Adjust the key positions in time until the rhythm feels right.
- Select all keys, press T, and choose Bezier. The motion is now smooth.
- Open the sidebar and check the handle types. Auto Clamped is a safe default.
This order matters because timing problems are easy to see in Constant and easy to hide in Bezier.
Setting interpolation from Python
The same property is available on keyframe points. This script changes one curve to Linear, then sets the final key to Constant. It uses action.fcurves, which applies to Blender versions before the slotted-actions change, so check the API docs for your version.
import bpy
obj = bpy.context.object
fcurve = obj.animation_data.action.fcurves.find("location", index=0)
for kp in fcurve.keyframe_points:
kp.interpolation = 'LINEAR'
# The last key starts no segment, but we set it for consistency.
fcurve.keyframe_points[-1].interpolation = 'CONSTANT'
fcurve.update()Valid values include 'CONSTANT', 'LINEAR', 'BEZIER', 'SINE', 'QUAD', 'CUBIC', 'QUART', 'QUINT', 'EXPO', 'CIRC', 'BACK', 'BOUNCE', and 'ELASTIC'. Calling fcurve.update() after edits makes Blender recalculate the curve.
Common errors
- Changing the wrong key. The segment you want to change belongs to the key on its left. If a segment still looks wrong after you change a mode, check the key before it.
- Expecting handles on every mode. Handles only matter for Bezier. If you switch a key to Linear, its handles stop affecting the segment, though they are kept and return if you switch back.
- Properties that cannot interpolate smoothly. Booleans, enums, and integers are stored as stepped values. Blender treats these curves as discrete, so the curve steps no matter which mode you pick. Do not spend time looking for a bug when a checkbox property will not blend.
- Rotation values that spin the long way. Interpolation works on numbers, not on orientations. Going from 10° to 350° in Euler mode rotates 340° through the long path. Pick values that match the path you want, or use the Euler Discontinuity Filter if values flip.
- Overshoot from Bezier handles. If a Bezier curve passes beyond its keys, the handle types are the cause, not the interpolation. Auto Clamped prevents this, and the next chapter explains why.
- Mixing modes unintentionally. If you add keys after changing the preference, you may end up with a curve that mixes modes. Select the whole curve and apply one mode to make it uniform.
Choosing a mode
Ask what the motion needs between the keys:
- Should the value change at all between keys? If not, use Constant.
- Should speed stay constant? Use Linear.
- Should motion ease in and out, with control over the shape? Use Bezier.
- Does the motion match a known shape, such as a bounce or a spring? Try Bounce or Elastic before building the shape by hand.
The mathematical modes are quick, but they offer less control than Bezier. When one almost works, convert it to Bezier and adjust it by hand.
Exercise
A curve has three keys at frames 1, 20, and 40. Key 1 is Constant, key 2 is Linear, and key 3 is Bezier. Describe the motion between frames 1 and 20, and between frames 20 and 40. Then say which segment is affected if you change key 3 to Elastic.
Show answer
Between frames 1 and 20 the value stays at key 1's value, then jumps to key 2's value at frame 20, because key 1 is Constant. Between frames 20 and 40 the value moves along a straight line at constant speed, because key 2 is Linear. Changing key 3 to Elastic changes nothing visible, because no segment starts at key 3. It would apply to a segment after key 3 if you added another key.
Exercise
You want a checkbox property, such as "Hide in Viewport", to fade in smoothly over 10 frames. Why will switching its keys to Bezier not work, and what could you animate instead?
Show answer
Boolean properties are stored as discrete values, so Blender steps them no matter which interpolation you select. To fade something in smoothly, animate a continuous property instead, such as a material's Alpha or a shader node's mix factor, and use Bezier on that.