Sub topic 6
The Timeline editor
This chapter assumes you can navigate the 3D Viewport, change editor types, resize areas, and have inserted at least one keyframe on an object (covered in the previous chapter). Here you learn to read the Timeline, move through time, and review animation with it.
What the Timeline is
The Timeline is a compact view of the scene's time axis. It shows the current frame, the frame range, and a diamond for every keyframe on the selected objects. It is a stripped-down mode of the Dope Sheet. It keeps the controls you need for reviewing and navigating, and it hides most of the editing tools.
The default Animation workspace has a Timeline along the bottom. In other workspaces you can switch any area to it from the editor type menu.
Reading the layout
The header runs along the top of the editor. From left to right, you will usually find:
- The View and Marker menus, and the Playback and Keying popovers.
- The transport buttons: jump to start, jump to previous keyframe, play in reverse, play, jump to next keyframe, and jump to end.
- The Current Frame field, which you can type into.
- The Start and End fields, with a clock icon next to them that switches on the preview range (see below).
Below the header is the time ruler. Its top strip is the scrubbing region, and the blue marker in it is the playhead. The playhead shows the current frame number. The area under the ruler shows keyframes as diamonds. Frames outside the scene's start and end are drawn darker, which makes the range easy to see.
On the left edge there is a small arrow that opens the channel region. It lists the channels of the selected objects. The Dope Sheet chapter covers channels in detail, so you can leave it closed for now.
Which keyframes the Timeline shows
By default the Timeline shows keyframes only for selected objects. This is controlled by the Only Show Selected option in the View menu. If you deselect everything, the diamonds disappear, even though the animation still exists. When keyframes seem to be missing, check the selection first.
For a selected armature in Pose Mode, the Timeline shows keyframes for the selected bones only.
Scrubbing
Scrubbing means dragging the playhead through time to see the scene at each frame. To scrub, click or drag in the scrubbing region at the top of the Timeline. The 3D Viewport updates at each frame as you drag, so you can check a motion at your own speed. Scrubbing is also the quickest way to find a frame, because the number shown on the playhead is the frame you land on.
You can step frame by frame with the keyboard while the pointer is over most animation editors or the 3D Viewport:
| Action | Default shortcut |
|---|---|
| Previous or next frame | Left arrow, Right arrow |
| Jump to previous or next keyframe | Down arrow, Up arrow |
| Jump to start or end of the range | Shift+Left arrow, Shift+Right arrow |
| Play or pause | Space |
| Play in reverse | Shift+Ctrl+Space |
| Stop and return to the starting frame | Esc |
Jumping between keyframes uses the keyframes of the selected objects, which matches what the Timeline displays.
Moving around the Timeline view
The Timeline has its own view, which is separate from the scene's frame range. These controls change only what you see:
- Ctrl+scroll wheel pans left and right.
- Ctrl+middle mouse drag zooms horizontally.
- Home (View All) fits the frame range into the area.
Changing the view does not change the animation or the range. If the diamonds look squeezed or are off screen, press Home.
Frame range and preview range
The Start and End fields in the header set the scene frame range. These are the same values you set in the Output properties. Playback loops inside this range, and so does rendering of an animation.
The clock icon switches on the preview range. When it is active, the Start and End fields turn orange, and playback loops only inside that smaller range. The scene's real range is left alone, so you can loop one section of a long shot without changing what gets rendered. Switch the clock off to return to the real range.
Playback options
The Playback popover holds the settings that decide how playback behaves. The most useful is Sync, which has three modes:
- Play Every Frame shows each frame, even if that makes playback slower than the scene's frame rate.
- Frame Dropping keeps the correct speed by skipping frames when the computer cannot keep up.
- Sync to Audio keeps playback in step with the sound, and drops frames as needed.
Which one to use depends on the scene. For judging timing, you want playback at the true speed, so use Frame Dropping or Sync to Audio. For checking that every pose is right, Play Every Frame is better, even if it runs slowly. A heavy scene with a slow viewport will play too slowly to judge timing, however you set Sync. Hiding heavy objects or using simpler viewport display settings helps more than any playback option.
The Keying popover is next to it. It holds the settings for new keyframes, and the record button for Auto Keying sits in the header. Auto Keying has its own chapter, so only note here that the record button, when active, inserts keyframes for you as you change properties.
Scripting the Timeline's state
The Timeline reads and writes the same scene properties you can reach from Python. This script prints the frame range and sets a preview range:
import bpy
scene = bpy.context.scene
print("Scene range:", scene.frame_start, "to", scene.frame_end)
print("Frame rate:", scene.render.fps)
scene.use_preview_range = True
scene.frame_preview_start = 10
scene.frame_preview_end = 30
scene.frame_set(10)
print("Current frame:", scene.frame_current)Run it from the Scripting workspace. After it runs, the clock icon in the Timeline is active, the Start and End fields read 10 and 30, and the playhead sits at frame 10. Setting scene.use_preview_range = False returns playback to the full range.
Use scene.frame_set() rather than assigning to frame_current. Calling frame_set makes Blender re-evaluate the scene at the new frame, which is what you want when a script reads animated values.
Common errors
- No diamonds are visible. Nothing is selected, or Only Show Selected is hiding the keyframes. Select the animated object, or turn the option off.
- Playback stops at a strange frame. The preview range is active. Check the orange fields and the clock icon.
- The animation plays too slowly. The scene is heavy for the viewport. Try Frame Dropping, and simplify the viewport.
- Jumping to the next keyframe does nothing. There are no keyframes after the playhead on the selected objects.
Exercise
You set the Timeline's End field to 60, but a rendered animation still ends at frame 250. The End field is orange. What is the likely cause, and how do you fix it?
Show answer
The preview range is active (the clock icon is on), so you changed the preview range rather than the scene range. Render uses the scene range. Switch the clock icon off, then set the real End value to 60, either in the Timeline header or in the Output properties.
Exercise
You select an animated cube, but the Timeline shows no diamonds. Name two possible reasons and one check for each.
Show answer
The cube may not actually be selected (check that it is highlighted in the Outliner or Viewport), or the Only Show Selected option may be hiding keyframes of unselected objects (check the View menu). A third reason is that the keyframes sit outside the visible part of the view, which pressing Home reveals.