Sub topic 2
Frames, frame range, and frame rate
This chapter covers how Blender measures time. Every keyframe you set later sits on a frame, so the frame range and frame rate decide how long and how fast your animation plays. It assumes you can navigate the 3D Viewport, select and move objects, find fields in the Properties editor, and change editor types and resize areas.
Frames as the unit of time
A frame is one still image in an animation. Blender numbers frames with integers and evaluates the scene at one frame at a time. When you play an animation, Blender steps through the frame numbers in order and redraws the scene at each one.
Three scene settings describe time:
- The current frame is the frame Blender is showing and evaluating right now. The playhead marks it in time-based editors.
- The frame range is the first and last frame that playback and rendering cover. These are the Start and End frames.
- The frame rate is how many frames play per second. It is measured in frames per second (fps).
These settings belong to the scene, not to the object. Two scenes in one .blend file can have different ranges and rates.
Frame rate
The frame rate converts frame numbers into seconds. At 24 fps, one second contains 24 frames. A shot that must last 2 seconds needs 48 frames at 24 fps, but 60 frames at 30 fps.
You set the frame rate in the Output Properties tab, in the Format panel. The Frame Rate menu offers presets such as 24, 25, 30, 50, and 60 fps. Choosing Custom reveals two fields, FPS and Base. Blender computes the real rate as FPS divided by Base. The preset named 23.98 uses FPS 24 and Base 1.001, which gives about 23.976 frames per second.
| Frame rate | Typical use |
|---|---|
| 24 fps | Film and many animated shorts |
| 25 fps | PAL television and video in regions that use it |
| 30 fps | Web video and some broadcast |
| 60 fps | Smooth motion, games, screen capture |
Pick the frame rate before you start animating. Keyframes are stored by frame number, not by seconds. If you change from 24 fps to 30 fps later, a key on frame 24 stays on frame 24. It now lands at 0.8 seconds instead of 1 second, so your timing changes.
Frame range
The frame range tells Blender which part of the timeline to play and render. The default is frame 1 to frame 250. You can change it in two places:
- In the Timeline header, the Start and End fields.
- In Output Properties, in the Frame Range panel, which has Frame Start, End, and Step.
Both places edit the same scene values.
Frame range and keyframes are independent. You can place a keyframe at frame 300 while the range ends at frame 250. The key exists, but playback and rendering will not reach it. This is a common reason an animation looks unfinished or a keyframe seems to do nothing during playback.
The Step value controls how many frames Blender advances between rendered frames. With Step set to 2, a render uses frames 1, 3, 5, and so on. Leave it at 1 unless you want a faster test render.
Preview range
The Timeline also has a Use Preview Range button, shaped like a clock, in its header. It lets you define a temporary range for playback only. Blender shows the preview range in orange, and the scene's real Start and End stay unchanged. Use it to loop one section of a long shot while you refine it. Rendering ignores the preview range.
The current frame
The current frame is where the playhead sits. When it changes, Blender re-evaluates every animated property at the new frame. You can change it by:
- Clicking or dragging in the ruler at the top of the Timeline (this is called scrubbing).
- Typing a number in the Current Frame field in the Timeline header.
- Pressing the Left and Right arrow keys to step one frame back or forward, and Up and Down to jump between keyframes.
Why it matters for keyframing: when you insert a keyframe, Blender records the property's value at the current frame. Always check the current frame before pressing the insert shortcut.
Blender also supports subframes, which are positions between whole frames. The playhead normally sits on whole frames, so you can ignore subframes in this chapter.
Setting time from Python
The scene's time settings are plain properties on bpy.context.scene. The following script sets a 2-second range at 24 fps, then moves the playhead to frame 12.
import bpy
scene = bpy.context.scene
scene.render.fps = 24
scene.render.fps_base = 1.0
scene.frame_start = 1
scene.frame_end = 48
scene.frame_set(12)
print("Current frame:", scene.frame_current)
seconds = (scene.frame_end - scene.frame_start + 1) / (
scene.render.fps / scene.render.fps_base
)
print("Length in seconds:", seconds)Use scene.frame_set(12) instead of assigning scene.frame_current = 12. frame_set also updates animated properties to that frame, as clicking frame 12 in the Timeline does. Assigning frame_current directly changes the number without re-evaluating the scene, so objects may stay in the old pose until something else triggers an update.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Playback stops before the last keyframe | End frame is lower than the key's frame | Raise End in the Timeline or Output Properties |
| Playback loops only a short section | A preview range is active, shown in orange | Turn off Use Preview Range |
| Render has more or fewer frames than expected | Start, End, or Step differ from what you assumed | Check the Frame Range panel |
| Motion feels too fast or too slow after reuse | Frame rate differs from the original project | Set the frame rate, then retime keys |
| Python edit does not move objects | `frame_current` was assigned directly | Call `scene.frame_set()` |
Exercise
A scene has Start 1, End 120, and a frame rate of 30 fps. How long is the animation in seconds? You then change the frame rate to 24 fps without touching any keyframes. What is the new length, and where in seconds does a keyframe on frame 60 now sit?
Show answer
The range holds 120 - 1 + 1 = 120 frames. At 30 fps that is 120 / 30 = 4 seconds. At 24 fps it is 120 / 24 = 5 seconds. Keyframes stay on their frame numbers, so the key on frame 60 stays on frame 60. It moves from 2 seconds (60 / 30) to 2.5 seconds (60 / 24).
Exercise
You inserted a keyframe on frame 300, but when you press play the object never reaches that pose. The scene uses the default range. What is the cause, and how do you fix it?
Show answer
The default End frame is 250, so playback stops before frame 300. Set End to 300 or higher in the Timeline header or in the Frame Range panel of Output Properties. Also check that no preview range is active.