Sub topic 16
Moving on to the Graph Editor
This chapter assumes you can insert keyframes, select and move them in the Dope Sheet, and change interpolation modes. It explains where the Dope Sheet stops being enough and how the Graph Editor picks up from there. The Graph Editor is a large topic, so this chapter covers the link between the two editors and leaves the full tool set for later.
What the Dope Sheet cannot show
The Dope Sheet shows when keyframes happen. Each keyframe is a diamond on a row, and its horizontal position is its frame. That makes it good for timing: moving, scaling, copying, and deleting keys across many channels.
The Dope Sheet does not show the value at a keyframe. It also does not show the shape of the motion between two keyframes. Two animations can have identical diamonds in identical places and still look very different. One may move at a steady speed, and the other may ease in and out.
The Graph Editor fills that gap. It plots each animated property as a curve. The horizontal axis is time in frames, as in the Dope Sheet. The vertical axis is the property's value.
Keyframes become F-curves
In Blender, each animated property channel is stored as an F-curve (function curve). An F-curve is a list of keyframe points plus the rule for computing values between them. The Dope Sheet draws only the points. The Graph Editor draws the whole curve.
An F-curve exists for every single value, not for every property. Location has three values (X, Y, Z), so keying location creates three F-curves. These are the same channels you saw under the object in the Dope Sheet. An action is the container that holds these F-curves for one object, as described in the previous chapter.
Opening the Graph Editor
You can switch an editor to the Graph Editor from the editor type menu in its header. You can also switch from the Dope Sheet mode menu is not needed: the Graph Editor is a separate editor, not a Dope Sheet mode. Many people split the screen so the Timeline or Dope Sheet is on one side and the Graph Editor on the other. Both editors read the same action, so a change in one appears in the other at once.
A quick way to switch an area between the two editors is to press Ctrl+Tab while the pointer is over a Dope Sheet or Graph Editor area. This toggles the area between the two.
Reading the Graph Editor
Open the Graph Editor on the object from the first code example, which rises from Z = 0 at frame 1 to Z = 2 at frame 24. You will see these parts:
- Channel list on the left. It works like the Dope Sheet channel list. Each row is an F-curve, with a color swatch, a visibility checkbox, and a lock.
- Curve area in the center. The playhead is a vertical line, as in the Dope Sheet.
- Handles on each keyframe point when the interpolation is Bézier. A handle is a small control point attached to a keyframe that sets the tangent of the curve at that point.
By default, new keyframes use Bézier interpolation. The curve is smooth and flattens near each keyframe. That flat shape is what you see as easing. In the Dope Sheet, you could only see that the mode was "Bézier". In the Graph Editor, you see the S-shaped curve it makes.
X, Y, and Z colors
Curves for vector properties use consistent colors: red for X, green for Y, and blue for Z. The same colors appear on the channel swatches. This helps when location, rotation, and scale are all visible at once.
Interpolation, seen as a shape
The interpolation modes from the earlier chapter each have a visible form in the Graph Editor.
| Mode | Shape of the curve between two keys |
|---|---|
| Constant | A flat step. The value holds, then jumps at the next key. |
| Linear | A straight line. The speed is steady. |
| Bézier | A smooth curve. Handles control the slope at each key. |
The scripted example that sets keyframe.interpolation = 'LINEAR' changes the F-curve from an S-shape to a straight line. If you run it and then open the Graph Editor, you can confirm the result directly.
import bpy
obj = bpy.context.active_object
action = obj.animation_data.action
for fcurve in action.fcurves:
print(fcurve.data_path, fcurve.array_index, len(fcurve.keyframe_points))
for keyframe in fcurve.keyframe_points:
print(" frame", keyframe.co[0], "value", keyframe.co[1], keyframe.interpolation)This script prints the same data the Graph Editor plots. data_path names the property, such as location. array_index selects the component: 0 is X, 1 is Y, 2 is Z. Each keyframe's co is a pair of frame and value. The script uses the F-curve access of Blender 2.8 through 4.x. Newer versions with layered actions may access F-curves differently.
What you can do in the Graph Editor
The Graph Editor shares many controls with the Dope Sheet. These work the same way:
- Select with click, box select, and
Afor all. - Move with
G, scale withS, and delete withX. - Change interpolation with
T. - Scrub by dragging in the time ruler.
The additional abilities are the reason to move over. You can move a key vertically to change its value, and you can adjust handles to shape the easing. When you move a key with G, you can press X or Y to limit the move to time or to value. These are the same axis constraints used in the 3D Viewport.
Choosing between the two editors
A practical rule is to decide by the question you are asking.
| Question | Better editor |
|---|---|
| When does this happen? | Dope Sheet |
| Do these actions line up across many objects? | Dope Sheet |
| How fast is it moving here? | Graph Editor |
| Why does the motion overshoot or feel floaty? | Graph Editor |
| What exact value does this key hold? | Graph Editor |
Common problems when you first switch
- You cannot see any curve. The curves may be out of view. Hover over the curve area and press
Hometo frame all visible curves. The channel may also be hidden, so check its visibility checkbox. - Only one object's curves appear. The Graph Editor shows selected objects by default. Select the object, or turn off the "Only Show Selected" filter in the header.
- The scale is wrong. A rotation channel is drawn in degrees, while a location channel uses scene units. When both are visible, one may look flat next to the other. Hide channels you do not need, or use
Homeafter hiding. - Handles move when you do not expect it. Moving a key moves its handles with it. Selecting only a handle moves only that handle and changes the slope.
- Dope Sheet edits look different afterward. Retiming keys in the Dope Sheet changes the frames but keeps the values. The curve shape may stretch or compress. This is expected, and you can inspect it in the Graph Editor.
A short worked check
Use this to confirm the link between the two editors.
- Run the first keyframing script from this tutorial on the active object. It creates keys at frames 1 and 24.
- Open a Dope Sheet. You see two diamonds on the Z Location row, and on the X and Y rows too, since all three components are keyed together.
- Open a Graph Editor. You see three curves. X and Y are flat at 0. Z rises from 0 to 2 in an S-shape.
- In the Dope Sheet, select both keys and press
Gto move them. The curve moves along the time axis in the Graph Editor. - In the Graph Editor, select the Z keys and press
T, then choose Linear. The S-shape becomes a straight line. The Dope Sheet still shows the same diamonds.
Step 5 shows the split of roles. Interpolation and values live on the F-curve, and the Dope Sheet shows only the timing.
Exercise
You retimed an animation in the Dope Sheet so a character's arm reaches its pose earlier. The timing is right, but the motion now looks abrupt as it arrives. Which editor would you use next to fix this, and what would you change there?
Show answer
Use the Graph Editor. The Dope Sheet only shows when keys happen, not how the value changes between them. In the Graph Editor, look at the arm's rotation curves near the arrival key. Adjust the Bézier handles so the curve flattens as it reaches the key, which creates an ease-in. Alternatively, select the key and change the interpolation with T.
Exercise
A script reads an F-curve with datapath "location" and arrayindex 2. Which value of the object does it describe, and what two numbers does each item in keyframe_points store in its co attribute?
Show answer
It describes the Z component of the object's location. Each keyframe point's co holds the frame number and the value at that frame.