Sub topic 16
Moving on to the Graph Editor
The Dope Sheet shows when keyframes occur. The Graph Editor shows how an animated value changes between those keyframes. This view is useful when timing alone is not enough. You can use it to control speed, pauses, overshoot, and smoothness.
This chapter assumes that you can create and select keyframes in the Dope Sheet, change the current frame, and understand basic object transforms.
From keyframes to curves
An animation channel, such as an object's X location, becomes an F-curve in the Graph Editor. The horizontal axis represents time. The vertical axis represents the property value.
For example, if an object's X location is 0 at frame 1 and 5 at frame 25, the curve describes the object's X location at every frame between those keys. Blender evaluates the curve at the current frame and uses that value for the object.
To open the Graph Editor, change an editor area to Graph Editor using the editor-type selector in the upper-left corner. You can also split an area if you want the Dope Sheet and Graph Editor visible together.
Reading and editing an F-curve
In the Graph Editor:
- The curve shows the property value over time.
- Keyframe points appear as small points on the curve.
- Handles control the curve's direction as it enters and leaves a keyframe.
- The sidebar shows exact values for selected keyframes and handles.
- The channel list identifies the object and property, such as Location X.
Select a keyframe and move it to change both its time and value. To change only its value, move it vertically. To change only its time, move it horizontally. Use the sidebar when you need exact numbers.
The interpolation mode determines the general shape between keyframes. Constant interpolation holds one value until the next keyframe. Linear interpolation moves at a steady rate. Bezier interpolation uses handles to create smooth changes in speed.
A practical editing sequence
- Select the animated object.
- Open the Graph Editor.
- Expand the channel list and select the property you want to adjust.
- Select a keyframe or a range of keyframes.
- Change the interpolation mode from the Key menu, or press T and choose a mode.
- Adjust handles or move points until the curve matches the desired motion.
- Scrub the Timeline to check the result.
A common error is editing the wrong channel. A curve for Location Z cannot change an object's rotation. Check the channel name before moving points.
Another error is creating an unintended overshoot with Bezier handles. If the object rises above its intended value, inspect the curve near the keyframe and make the handles flatter or choose Linear interpolation.
Python and interpolation
The following script changes all keyframes in the active object's existing action to linear interpolation:
import bpy
obj = bpy.context.active_object
if obj is None or obj.animation_data is None:
raise RuntimeError("Select an animated object first")
action = obj.animation_data.action
if action is None:
raise RuntimeError("The selected object has no action")
for fcurve in action.fcurves:
for keyframe in fcurve.keyframe_points:
keyframe.interpolation = "LINEAR"
print("Set interpolation to Linear")This changes the curve shape without changing the keyframe times or values.
Exercise
An object pauses briefly at a keyframe and then moves at a steady speed to the next keyframe. Which editor and interpolation mode are a good starting point?
Show answer
Use the Graph Editor to inspect the relevant F-curve, then use Constant before the moving segment if a hold is needed and Linear for the steady movement.