Sub topic 2
The Timeline Editor
This chapter assumes you can select objects, move them in the 3D Viewport, and read values in the Properties editor. You should also know how to switch an area's editor type. You will use the Timeline to move through time, to record keys with Auto Keying, and to see keys in the Dope Sheet.
The Timeline Editor
The Timeline is a strip at the bottom of the default Animation workspace. It shows the current frame, the scene's frame range, and diamond-shaped markers for keyframes on the selected objects. Its header holds the playback controls and the Auto Keying toggle.
The Timeline is a mode of the Dope Sheet editor, so changing the editor type to Dope Sheet gives you the same data with more controls.
Scrubbing and Playback
Scrub by dragging in the frame ruler at the top of the Timeline. Step one frame with the Left and Right arrow keys while the pointer is over the 3D Viewport or Timeline. Press Shift+Left or Shift+Right to jump to the start or end of the frame range. Press Space to play or stop.
Set the range with the Start and End fields in the Timeline header. The following script sets the frame and reads it back:
import bpy
scene = bpy.context.scene
scene.frame_set(12)
print("Current frame:", scene.frame_current)Auto Keying
Auto Keying is the record button in the Timeline header. When it is on, any change to an animatable property inserts or updates a keyframe at the current frame. Turn it off when you only want to preview a pose.
> The Auto Keying button records changes at the current frame only. Changes made on other frames are not keyed.
The Dope Sheet
Switch the editor type to Dope Sheet to see every keyframe for the scene's objects in one view. Each row is a channel, such as X Location or Y Rotation. Keyframes appear as diamonds along the timeline.
Channels, Groups, and the Summary Row
The top row, called the summary row, combines the keys of all channels. Channels with the same object are grouped under one name. Collapse or expand a group with the arrow beside it. Select a keyframe in the summary row to select it in every channel at that frame.
Exercise
You want to see the keys of Location X and Location Z together, but not Location Y. Which view and which controls do you use?
Show answer
Open the Dope Sheet and expand the object's group. Use the channel list to see X and Z, hide Y by clicking its visibility toggle, and use the summary row to select keys at the same frame.