Sub topic 8
Easing in and out
This chapter assumes you can insert keyframes, open the Graph Editor, and select keys and handles. You should also know the interpolation modes from the previous chapters. Here you learn how easing changes the way a curve leaves one key and arrives at the next.
What easing controls
Interpolation decides the shape family of the curve between two keys. For example, Quadratic produces a parabola and Sine produces part of a sine wave. Easing decides which end of that segment the shape is applied to.
- Ease In shapes the start of the segment. The value leaves the first key slowly and speeds up.
- Ease Out shapes the end of the segment. The value moves quickly and slows down as it reaches the second key.
- Ease In and Out does both. The motion starts slowly, speeds up in the middle, and settles at the end.
- Automatic Easing lets Blender choose a default for the interpolation mode.
Easing is a property of the interpolation mode, not of the keyframe in general. It only has an effect on the mathematical interpolation modes: Sine, Quadratic, Cubic, Quartic, Quintic, Exponential, Circular, Back, Bounce and Elastic. Constant and Linear have no easing, and Bezier ignores it because its shape comes from the handles.
Which key owns the setting
Blender stores interpolation and easing on the key at the start of a segment. The segment between frame 1 and frame 24 uses the settings of the key on frame 1. The key on frame 24 only supplies the end value and controls the segment after it.
This has three practical consequences:
- To change how a move arrives at a pose, edit the key before it, not the key at the pose.
- Easing on the last key of a curve does nothing, because no segment follows it.
- Each segment can have its own mode and easing, so one curve can mix Cubic, Linear and Bezier segments.
Setting easing in the Graph Editor
- Select the keys whose outgoing segments you want to change.
- Choose Key > Easing, or press
Ctrl+Ewith the pointer over the Graph Editor, and pick an easing type. - If the mode is still Bezier or Linear, first press
Tand choose a different interpolation, such as Cubic. Otherwise the easing has no visible effect.
You can also set both values in the sidebar. Press N, open the F-Curve tab and find the Active Keyframe panel. It shows Interpolation and Easing for the active key. Back, Elastic and Bounce add extra fields to this panel.
Changes apply to all selected keys, so select with care. If you select every key on several channels, you set them all at once.
How the shapes differ
Take a move from 0 to 1 over normalized time t, running from 0 to 1. The common modes follow these formulas.
| Easing | Quadratic | Cubic |
|---|---|---|
| Ease In | `t²` | `t³` |
| Ease Out | `1 - (1 - t)²` | `1 - (1 - t)³` |
| Ease In and Out | `2t²` for the first half, then the mirror image | `4t³` for the first half, then the mirror image |
The same pattern holds for the other power modes. A higher power gives a longer slow section and a sharper burst of speed. The order from gentlest to strongest is Sine, Quadratic, Cubic, Quartic, Quintic, Exponential. Circular is similar but has an abrupt, nearly vertical edge on the fast side.
The dynamic modes add overshoot:
- Back pulls slightly backward before moving forward (Ease In), or overshoots the target and returns (Ease Out). The Back field sets how far.
- Bounce hits the end value and rebounds several times, like a dropped ball.
- Elastic oscillates around the end value like a spring. Amplitude sets the size of the swing and Period sets its speed.
Easing versus Bezier handles
Both can produce a gentle start and stop, so which one should you use?
| Question | Easing (Cubic and similar) | Bezier handles |
|---|---|---|
| Control | One setting per segment | Two handles per key, fully free |
| Speed to set up | Fast, works on many keys at once | Slower, but precise |
| Predictable | Same shape every time | Depends on handle length and angle |
| Continuity across keys | Each segment is independent | Handles can keep slopes smooth through a key |
Use easing for quick blocking-to-polish passes, mechanical or UI motion, and anything where a consistent shape matters. Use Bezier when the slope through a key must stay continuous, for example in a hand-polished character arc.
A common mistake is mixing the two on neighboring segments. A Cubic ease-out segment arrives at a key with zero slope. If the next segment is Linear, the object stops dead and then jumps to full speed. Check where the slopes meet on the curve.
Easing in a chain of keys
Consider an object that moves from A to B and then to C. If you set Ease In and Out on both outgoing keys, the object stops at B every time. That is correct for a robot arm, but it looks mechanical for a ball being thrown through a point.
To get motion that passes smoothly through B:
- Set the first segment (A to B) to Ease In. It accelerates and does not slow down at B.
- Set the second segment (B to C) to Ease Out. It continues fast at B and slows at C.
Now there is no stop at B. The slopes on both sides of B are not guaranteed to match exactly, because the two segments have different shapes. If you see a small kink, switch to Bezier with Auto Clamped handles, or fine-tune the handles.
Setting easing from Python
The properties match the sidebar. In keyframe_points, interpolation takes values such as 'CUBIC' and 'ELASTIC', and easing takes 'AUTO', 'EASE_IN', 'EASE_OUT' or 'EASE_IN_OUT'.
This example uses action.fcurves, which applies to Blender versions before the slotted-actions change. Check the API documentation for your version.
import bpy
obj = bpy.context.object
obj.location = (0.0, 0.0, 0.0)
obj.keyframe_insert(data_path="location", frame=1)
obj.location = (4.0, 0.0, 0.0)
obj.keyframe_insert(data_path="location", frame=24)
fcurve = obj.animation_data.action.fcurves.find("location", index=0)
first = fcurve.keyframe_points[0]
first.interpolation = 'CUBIC'
first.easing = 'EASE_IN_OUT'
fcurve.update()
print(first.interpolation, first.easing)The script changes only the first key, because that key owns the segment from frame 1 to frame 24. The last key keeps its default settings.
To add overshoot, use the Back mode and adjust its extra property:
import bpy
obj = bpy.context.object
fcurve = obj.animation_data.action.fcurves.find("location", index=0)
first = fcurve.keyframe_points[0]
first.interpolation = 'BACK'
first.easing = 'EASE_OUT'
first.back = 1.5
fcurve.update()Setting first.back above its default of 1.70158 gives a bigger overshoot, and a lower value gives less. Elastic keys use amplitude and period in the same way.
Common errors
- Nothing changes after Ctrl+E. The segment is probably Bezier, Linear or Constant. Switch to a mathematical mode first.
- The wrong segment changed. Easing applies to the segment after the selected key. Select the key before the move you want to edit.
- Overshoot goes beyond a limit. Back, Elastic and Bounce can pass the end value, for example making a door swing through its frame or a value go negative. Cap or check the result if the property has a valid range.
- Easing disappears after switching to Bezier. Bezier ignores the easing field and uses handles. The easing value is still stored, so switching back restores it.
- Motion looks sluggish. Many stacked Ease In and Out segments make every move start and end slowly. Keep the strong easing for the moves that need it and use Ease In or Ease Out alone on the rest.
Exercise
A cube moves from X = 0 on frame 1 to X = 5 on frame 20, and then to X = 8 on frame 40. You want it to speed up from rest on the first move, pass through frame 20 without slowing, and come to a gentle stop at frame 40. Which keys do you edit, which interpolation and easing do you set on each, and why does the key on frame 40 need no change?
Show answer
Use a mathematical mode such as Cubic. Select the key on frame 1 and set Ease In, so the first segment starts slowly and accelerates and arrives at frame 20 at speed. Select the key on frame 20 and set Ease Out, so the second segment keeps moving fast at frame 20 and slows toward frame 40. The key on frame 40 needs no change, because it owns no outgoing segment and its easing has no effect.
Exercise
You set Ease In and Out on a key, but the curve still looks like a smooth S-shape made by handles, and changing the easing type changes nothing. What is the likely cause, and how do you fix it?
Show answer
The segment uses Bezier interpolation, which ignores the easing setting and takes its shape from the handles. Press T with the key selected and choose a mathematical mode such as Cubic, or keep Bezier and shape the curve by editing the handles.