Sub topic 9
Setting the Frame Range and Frame Rate
Assume you know how to navigate Blender’s 3D Viewport, Properties editor, and Timeline. This chapter also assumes your scene contains animated keyframes and at least one camera. The frame range decides which frames Blender renders. The frame rate decides how quickly those frames play back.
Frame range and animation duration
The frame range has two values:
- Start is the first frame Blender renders.
- End is the last frame Blender renders.
Both values are inclusive. A range from frame 1 to frame 120 contains 120 frames.
The frame rate is measured in frames per second, or fps. A setting of 24 fps displays 24 frames every second. It does not change the number of frames in the range.
For example, a 120-frame animation at 24 fps lasts 5 seconds:
| Start | End | Frame rate | Rendered frames | Playback duration |
|---|---|---|---|---|
| 1 | 120 | 24 fps | 120 | 5 seconds |
To change these settings, open Output Properties. In the Format section, set Frame Rate. In the Frame Range section, set Start and End. You can also edit the Start and End fields in the Timeline.
Choosing a range
Set the range to match the part of the animation you want to review or render. You might use frames 1–120 for a five-second test at 24 fps, then change the range to 1–720 for a 30-second final render.
The frame range does not create animation. It only limits playback and rendering. Keyframes outside the range remain in the scene, but Blender does not render them when you use Render Animation.
A shorter range is useful for testing lighting, camera movement, and output settings. After the test succeeds, restore the final range before starting the full render.
Frame rate and keyframes
Keyframes belong to frame numbers. Changing the frame rate does not automatically move those keyframes.
Suppose an object moves from frame 1 to frame 120. At 24 fps, that movement takes 5 seconds. If you change the scene to 30 fps while keeping the keyframes at frames 1 and 120, the movement takes 4 seconds. The object reaches the same positions, but it moves faster in real time.
If you need to preserve the duration while changing fps, scale the keyframe timing. For example, converting a 24 fps animation to 30 fps requires multiplying frame numbers by 30/24, or 1.25.
Set the values with Python
The following script sets a 120-frame animation at 24 fps and renders it as numbered PNG files. The output path uses ####, which Blender replaces with the frame number.
import bpy
scene = bpy.context.scene
scene.frame_start = 1
scene.frame_end = 120
scene.render.fps = 24
scene.render.image_settings.file_format = "PNG"
scene.render.filepath = "//renders/frame_####"
bpy.ops.render.render(animation=True)The script renders every frame from 1 through 120. Create the renders folder before running it if your Blender version does not create missing folders automatically.
Exercise
At 30 fps, how many frames are in the range 1–90, and how long does the rendered animation last?
Show answer
The range contains 90 frames. At 30 fps, it lasts 3 seconds.