Sub topic 7
Scrubbing and playback
This chapter assumes you can navigate the 3D Viewport and change editor types. It also assumes you have inserted at least one keyframe, as covered earlier in this tutorial. Here you will learn how to move through time, play an animation, and tune playback so what you see is what you rendered.
Two ways to move through time
Blender evaluates every animated property at the scene's current frame. Changing that frame is how you review animation. You can change it in two ways:
- Scrubbing means dragging the playhead by hand. You control the speed and direction.
- Playback means Blender advances the frame automatically at the scene's frame rate.
Both change the same value, scene.frame_current. The 3D Viewport, Timeline, Dope Sheet, and Graph Editor all read that value, so they stay in sync.
Scrubbing
The playhead is the blue vertical line with the current frame number in a box at the top. To scrub:
- Click or drag in the numbered strip at the top of the Timeline. This strip is the scrubbing region.
- The viewport updates as you drag, and animated properties take their values for that frame.
The Dope Sheet and Graph Editor have the same scrubbing region. Dragging in the main area of those editors selects keyframes instead of moving the playhead, so start from the numbered strip.
You can also type a frame number into the Current Frame field in the Timeline header. This is exact and useful when you need a specific frame.
Stepping frame by frame
Scrubbing is imprecise for fine checks. These shortcuts work when the mouse is over most animation editors or the 3D Viewport:
| Shortcut | Effect |
|---|---|
| Left / Right arrow | Go back or forward one frame |
| Up / Down arrow | Jump to the next or previous keyframe |
| Shift+Left / Shift+Right | Jump to the start or end frame |
Jumping to keyframes is the fastest way to inspect your poses. Blender jumps to keyframes of the selected objects (or all visible objects, depending on the editor and its filters), so make sure the right object is selected.
Starting and stopping playback
Press Space with the mouse over the viewport or an animation editor to start playback. Press Space again to stop. The playhead stays where you stopped it.
| Action | Result |
|---|---|
| Space | Play forward, or pause if already playing |
| Shift+Ctrl+Space | Play in reverse |
| Esc during playback | Stop and return to the frame where playback started |
The difference between Space and Esc matters. Space leaves you at the frame you reached, which is useful when you spotted a problem. Esc returns you to where you began, which is useful for repeated review of one section.
The Timeline header also has transport buttons: jump to start, jump to previous keyframe, play reverse, play, jump to next keyframe, and jump to end.
What happens at the end of the range
Playback stays inside the frame range set by Start and End in the Timeline header. When the playhead reaches the end frame, it loops back to the start frame. Frames outside the range are never played, but you can still scrub to them.
Preview Range
Sometimes you want to loop a short section without changing the render range. The Preview Range does this.
- Click the clock icon in the Timeline header to turn on Use Preview Range.
- Set its Start and End fields. The range appears in orange in the Timeline.
- Playback now loops only inside that range.
You can also Ctrl+Alt+drag in the Timeline to draw a preview range directly.
The preview range affects playback only. Rendering still uses the scene's real Start and End frames, so you cannot accidentally render a shortened animation. Turn the clock icon off to return to the normal range.
The Playback popover
The Playback popover in the Timeline header holds the settings that control how playback behaves. The options most worth knowing are these.
Sync mode
Sync decides what Blender does when it cannot draw frames fast enough.
| Mode | Behavior | Use when |
|---|---|---|
| Play Every Frame | Shows every frame, even if playback runs slower than the frame rate | You are checking each pose and timing does not matter yet |
| Frame Dropping | Skips frames to keep the correct speed | You are judging timing and speed |
| Sync to Audio | Skips frames to stay in sync with the sound | The animation has audio you must match |
Frame Dropping is the default, and it is why a heavy scene can look jerky: Blender is skipping frames to keep up.
Other options
- Audio > Scrubbing plays a short piece of sound as you drag the playhead. It helps you place a keyframe on a beat.
- Limit Playback to Selected (named "Only Selected" in older versions) hides unselected objects' animation cost by evaluating less during playback.
- Follow Current Frame scrolls the Timeline so the playhead stays visible during playback.
Menu names shift slightly between Blender versions, so look for the same options if a label differs from the one used here.
Why playback may not run at full speed
The scene's frame rate, such as 24 or 30 fps, is a target. Blender can only reach it if it evaluates and draws each frame in time. During playback the 3D Viewport shows the achieved frame rate in its text overlay, and the number turns red when Blender falls behind.
Common causes and fixes:
- Heavy geometry. Switch the viewport to Solid shading, or lower subdivision levels in the viewport.
- Expensive modifiers or simulations. Disable them in the viewport while you work on timing.
- Rendered or Material Preview shading. Use Solid shading to judge motion.
- Many visible objects. Hide objects you do not need, or turn on Limit Playback to Selected.
Scrubbing and playback from Python
Setting the current frame from a script uses scene.frame_set(). This is more than assigning frame_current, because frame_set() also re-evaluates animation and updates dependent data. The script below steps through the frame range and prints the active object's height at each frame.
import bpy
scene = bpy.context.scene
obj = bpy.context.active_object
if obj is None:
raise RuntimeError("Select an object with animated location first.")
original_frame = scene.frame_current
for frame in range(scene.frame_start, scene.frame_end + 1, 6):
scene.frame_set(frame)
print(f"Frame {frame}: z = {obj.location.z:.3f}")
scene.frame_set(original_frame)The script stores the original frame and restores it, so running it does not leave the playhead somewhere unexpected. Real-time playback is a user interface feature, so scripts that need to inspect animation should step with frame_set() as shown.
Exercise
You are checking a pose at frame 40. You press Space to play, watch for a while, and stop with Esc. Where is the playhead, and what would you have done differently to stay near the frame you stopped on?
Show answer
Esc stops playback and restores the frame where playback started, so the playhead returns to the frame you began from. To stay on the frame you reached, stop with Space instead. To verify a particular pose reliably, step to it with the arrow keys, because Frame Dropping may skip frames during playback.
Exercise
You want to loop frames 20 to 60 repeatedly without changing the range that gets rendered. How do you set this up?
Show answer
Turn on Use Preview Range with the clock icon in the Timeline header, then set its Start to 20 and End to 60. Playback loops inside that range, and rendering still uses the scene's normal Start and End frames.