Sub topic 5
Zooming: moving in and out with the wheel, drag, and zoom border
This chapter assumes you can already orbit and pan in the 3D viewport, and that you know where Preferences lives (Edit > Preferences). It uses Blender 2.8 or later with the default keymap. Python examples that override the context need Blender 3.2 or later.
What zooming actually does
Zooming moves your viewpoint toward or away from the point you orbit around. It does not change the size of your objects. In the Python API this is the view_distance value of the viewport's RegionView3D data, the distance from the view to its orbit pivot.
This has three consequences.
- In perspective, zooming in moves the viewpoint closer. Parallax and foreshortening change as you move.
- In orthographic views, zooming changes the visible scale. The view has no real distance to travel, so Blender treats distance as the scale of the visible area.
- Zooming does not move the pivot. If you zoom toward an object that sits away from the pivot, the object slides toward the edge of the screen instead of growing in place. The preferences later in this chapter change this.
Zooming with the mouse wheel
Scrolling the mouse wheel is the default way to zoom. Scrolling forward (away from you) zooms in, and scrolling back zooms out. Each notch changes the distance by a fixed proportion, so zooming is exponential. Zooming from 100 m to 10 m takes about the same number of notches as zooming from 10 m to 1 m.
This gives fast movement across large distances and fine control up close, with no extra effort.
Two limits are worth knowing:
- In perspective, the wheel stops at the orbit pivot. You can't travel through it. If the view feels stuck while your target is still far away, the pivot is the problem, not the wheel.
- The viewport has a clip start and clip end. Geometry closer than clip start or farther than clip end is not drawn. The default values are 0.01 m and 1000 m. A later chapter covers them in detail.
Zooming with keyboard and drag
The wheel is not the only option. These alternatives help when your input device lacks a wheel or you want more control.
| Method | Default input | Notes |
|---|---|---|
| Mouse wheel | Scroll | Step zoom, exponential |
| Keypad | Numpad + and Numpad - | Step zoom, same as one wheel notch |
| Drag zoom | Ctrl + Middle Mouse drag | Continuous zoom, style set in Preferences |
| Gizmo drag | Click and drag the magnifier icon | Mouse-only zoom |
| Zoom border | Shift + B, then drag a box | Frames the box contents |
With Emulate 3 Button Mouse enabled, use Alt + Ctrl + Left Mouse drag to zoom. On a laptop without a numpad, Emulate Numpad (also in Preferences > Input) maps the number row to the numpad keys, so the plus and minus keys on the number row do not zoom. Use the wheel, a drag, or the gizmo there.
The navigation gizmo in the top right corner has a magnifier icon. Dragging it up or down zooms. This is the only zoom method that needs just a mouse button and no modifier key.
Zoom border
Zoom Border is the fastest way to inspect a small area. Press Shift + B, then click and drag a rectangle in the viewport. When you release, Blender changes the view so that the rectangle fills the region.
Details that matter in practice:
- It works in perspective and orthographic views. In orthographic views the result is exact, because the visible scale simply changes to fit the box.
- In perspective, the view moves to a new position. The pivot also shifts, so a following orbit rotates around the new area.
- Dragging with the middle mouse button instead of the left zooms out, so the current view shrinks into the rectangle.
- Press Esc or right-click before releasing to cancel.
- It is not the same as Alt + B (clipping border), which cuts away geometry and does not move the view.
Use Zoom Border when you need a precise target. For example, you can zoom in on one vertex cluster in a dense mesh without selecting it first.
Preferences that change zoom behavior
Open Edit > Preferences > Navigation. The Zoom section contains the settings that most affect how zooming feels.
Zoom to Mouse Position
By default, zooming moves toward the center of the view. Turn on Zoom to Mouse Position and the wheel zooms toward the point under your cursor instead. This keeps the detail you are pointing at under the cursor.
It also works around the pivot limit, because the view moves toward the point under the cursor instead of the pivot. The trade-off is that zooming out moves the view away from the cursor, so zooming in and out repeatedly can drift your framing. If you rely on a stable orbit center, leave it off and use View Selected to frame things.
A related setting is Auto Depth in the Orbit & Pan section. It tells the viewport to find the geometry under the cursor and use it as the zoom and orbit target. It makes Zoom to Mouse Position more accurate on solid surfaces.
Zoom Style
Zoom Style controls how Ctrl + Middle Mouse drag converts mouse motion into zoom. It applies to dragging only, not to the wheel.
| Style | Behavior |
|---|---|
| Dolly | Dragging up or down zooms by the vertical distance moved (default) |
| Continue | The view keeps zooming at a speed that depends on how far you dragged from the start point |
| Scale | Zoom depends on the distance from the center of the viewport, like pinching |
Direction
Invert Zoom Direction reverses the wheel and keypad direction. Invert Mouse Zoom Direction (shown when the Zoom Style is Dolly or Continue) reverses the drag direction. Set them separately, because many people want a different direction for each.
Choosing a zoom method
Common problems
Zooming seems to stop. In perspective, you have reached the orbit pivot. Press Numpad Period to frame the selection (which also moves the pivot), turn on Zoom to Mouse Position, or pan over to the area you want and then zoom.
Zooming goes the wrong way. Toggle Invert Zoom Direction in Preferences. Do not change your hardware driver settings first, since that affects every application.
Geometry disappears when you zoom in close. The object has crossed the clip start plane. Raise or lower Clip Start in the sidebar (N) under View > View. Make it smaller to see closer geometry, but keep the ratio between clip start and clip end reasonable. Very large ratios cause depth precision problems and flickering surfaces.
The view feels slow or fast on a large scene. Zoom steps are proportional to the current distance, so a scene with huge dimensions simply needs more steps. Use View All (Home) to reset your distance, or Zoom Border for a direct jump.
Drag zoom feels erratic. Check the Zoom Style. Scale reacts to where you start in the region, so starting near the center produces large changes.
Zooming from Python
Because zoom is just a distance, you can set it directly. The first script reads and sets the view distance. The second runs the zoom operator, which is the same code path the wheel uses.
import bpy
for area in bpy.context.screen.areas:
if area.type == 'VIEW_3D':
r3d = area.spaces.active.region_3d
print("Before:", r3d.view_distance)
r3d.view_distance = 10.0 # set the distance to the orbit pivot
print("After:", r3d.view_distance)
breakimport 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.zoom(delta=2) # positive zooms in, like scrolling forward
bpy.ops.view3d.zoom(delta=-1) # negative zooms out
breakSetting view_distance is exact and repeatable, which suits scripted setups. The operator respects the user's preferences, such as Zoom to Mouse Position, which may or may not be what you want in a script. Run these from the Scripting workspace's Text Editor, where a 3D viewport exists on screen.
Exercise
You are modeling in perspective view. You scroll the wheel to zoom toward a small detail near the edge of the screen, but the detail slides off screen instead of growing. Name two ways to fix this.
Show answer
Turn on Zoom to Mouse Position in Preferences > Navigation, so the wheel zooms toward the cursor. Alternatively, frame the detail first with View Selected (Numpad Period) or Zoom Border (Shift + B), which moves the pivot to the area you care about.
Exercise
A script sets r3d.view_distance = 0.001 and the scene seems to disappear. Why might that happen, and what is the quickest way to recover interactively?
Show answer
The viewpoint now sits so close to the pivot that most geometry is nearer than the default clip start of 0.01 m, so it is not drawn. Press Home (View All) to restore a sensible distance, or lower Clip Start in the sidebar's View tab.