Sub topic 3
Framing: View Selected, View All, and Local View
This chapter assumes Blender 2.8 or later with the default keymap, familiarity with orbit, pan, and zoom, and a mouse with a middle button or a numpad.
Framing the selection and the scene
- View Selected (Numpad
.) moves the view so the selected objects fill the viewport. - View All (Home) frames every object in the scene.
- Local View (Numpad
/) isolates the selected object and hides everything else. Press it again to restore the full scene.
> The note below covers a common mistake.
Camera view
Numpad 0 looks through the scene camera. Use it to check composition. Scroll to adjust the view while keeping the camera framing.
Tuning navigation in Preferences
Open Edit > Preferences > Navigation to change how the view behaves:
- Orbit Style sets Turntable or Trackball rotation.
- Orbit Around Selection makes the orbit pivot on the selected object.
- Zoom to Mouse Position zooms toward the cursor instead of the view center.
Quad View
Press Ctrl+Alt+Q to split the viewport into four views: top, front, right, and perspective. Press it again to return to one view.
When objects vanish
Open the sidebar with N, then select the View tab. Clip Start and Clip End set the nearest and farthest distances that Blender draws. If an object disappears, check whether it lies outside those limits. Increase Clip End for distant objects, or decrease Clip Start for objects that sit very close to the camera.
Fly and walk navigation
Shift+F starts fly/walk navigation. Use W, A, S, and D to move and the mouse to look around.
Setting the view from Python
This script frames the scene, then the selection. The temp_override call requires Blender 3.2 or later.
import bpy
for area in bpy.context.screen.areas:
if area.type == 'VIEW_3D':
region = next(r for r in area.regions if r.type == 'WINDOW')
with bpy.context.temp_override(area=area, region=region):
bpy.ops.view3d.view_all()
bpy.ops.view3d.view_selected()
breakTo read the current projection, use area.spaces.active.region_3d.view_perspective, which returns 'PERSP', 'ORTHO', or 'CAMERA'.
Exercise
Exercise
Which shortcut frames only the selected objects?
Show answer
Numpad . (period), which runs View Selected.