Sub topic 2
Zooming: moving in and out with the wheel, drag, and zoom border
This chapter assumes Blender 2.8 or later with the default keymap, a mouse with a middle button, and basic familiarity with the 3D viewport. Zooming changes how far the view sits from its pivot point. Standard views and projection then control the viewing direction and the lens type.
Zooming
- Scroll wheel: zooms toward the centre of the view.
- Ctrl + middle-drag: zooms smoothly.
- Shift + B, then drag a box: zoom border fits the boxed area to the viewport.
- Numpad + and Numpad -: zoom in and out in steps.
To zoom toward the cursor instead, enable Zoom to Mouse Position in Preferences > Navigation.
import bpy
# Halve the view distance of the first 3D viewport (zoom in by a factor of 2).
for area in bpy.context.screen.areas:
if area.type == 'VIEW_3D':
r3d = area.spaces.active.region_3d
r3d.view_distance *= 0.5
breakThe navigation gizmo
The navigation gizmo is the axis widget in the top-right corner of the viewport. Click an axis ball to snap to that view. Click the centre dot to toggle between perspective and orthographic. Drag the gizmo to orbit. The gizmo works without a numpad.
Standard views
Numpad 1 shows the front, Numpad 3 the right side, and Numpad 7 the top. Add Ctrl for the opposite view: Ctrl+Numpad 1 shows the back, Ctrl+Numpad 3 the left, and Ctrl+Numpad 7 the bottom.
Perspective versus orthographic projection
Perspective projection makes distant objects look smaller, as a camera lens does. Orthographic projection keeps parallel lines parallel, so an object keeps its apparent size at any distance. Use orthographic views for alignment and measuring. Use perspective to judge volume and depth. Numpad 5 toggles between the two.
Exercise
You need to check that two objects share the same height. Which projection and view do you use, and why?
Show answer
Use orthographic projection with the front view (Numpad 1). Parallel lines and sizes stay true, so the heights compare directly.