Sub topic 4
Panning: sliding the view sideways and up or down
Panning moves the view parallel to the screen without turning it. Objects slide across the viewport and keep their apparent angles. This chapter covers the pan controls, what panning changes in the viewport's data, and the cases where panning seems to misbehave.
This chapter assumes you have read the earlier chapters on viewport basics and input setup. You should know what Emulate 3 Button Mouse and Emulate Numpad do, and you should be comfortable orbiting.
What panning does to the view
The viewport is a camera on your scene. Panning slides that camera along its own horizontal and vertical axes, so its viewing direction stays the same. Orbiting does the opposite: the camera moves around a fixed point and keeps facing it.
Blender stores the view in a RegionView3D object. Two of its properties matter here:
view_locationis the point the view orbits around. It is also the point you pan.view_rotationis the direction the view faces.
Panning changes view_location and leaves view_rotation alone. The pivot moves with the view, so the next orbit pivots around the new location. This is why orbiting can feel "off" after a long pan: the point you orbit around is no longer in the middle of your object.
Pan with the mouse
The default way to pan is to hold Shift and drag with the middle mouse button (MMB).
- Place the pointer over the 3D viewport.
- Hold Shift.
- Press and hold the middle mouse button, then move the mouse.
- Release the button to stop.
In perspective projection, Blender scales the pan speed with the distance between the view and its pivot. The point under the cursor moves with the cursor at roughly the same rate whether you are zoomed in or far away. In orthographic projection the scale follows the zoom level in the same way.
Without a middle button
If Emulate 3 Button Mouse is enabled in Preferences (Input), you can pan with the left button:
- Alt+Shift+LMB drag pans the view.
The emulation setting uses Alt for its modifier. On Linux, window managers often grab Alt+drag to move windows. If the drag moves the Blender window, change the window manager's modifier or switch the emulation to use the Cmd/OS key in Preferences.
Pan with the wheel
The mouse wheel pans too, when you hold a modifier:
| Action | Shortcut |
|---|---|
| Pan horizontally | Ctrl+Wheel |
| Pan vertically | Shift+Wheel |
Each wheel notch moves the view a fixed step. This is slower than dragging but precise, and it works on mice that have no clickable wheel.
Pan with the keyboard
The numpad keys pan in steps when you hold Ctrl:
| Direction | Numpad shortcut |
|---|---|
| Left | Ctrl+Numpad 4 |
| Right | Ctrl+Numpad 6 |
| Up | Ctrl+Numpad 8 |
| Down | Ctrl+Numpad 2 |
With Emulate Numpad enabled, use the number row instead: Ctrl+4, Ctrl+6, Ctrl+8, and Ctrl+2. Emulate Numpad also turns the number row into view shortcuts, so it no longer switches collections or layers the way it did in older versions. Choose it only if you do not have a numpad.
Keyboard panning is useful in orthographic views. A fixed step per key press lets you scan a modeling reference image without the drift of a drag.
Pan with the navigation gizmo
The navigation gizmo sits in the top right corner of the viewport. It has two buttons beside the axis ball:
- The hand icon pans. Click and drag it, and the view follows the drag.
- The magnifier icon zooms.
Dragging the hand is the way to pan when you have no middle button and have not enabled emulation. On a tablet or a trackpad it is also easier than a modifier chord. The gizmo shows you the mode you are in, and the drag starts and stops with the left button.
Panning in different view types
Panning behaves slightly differently depending on the view you are in.
- Perspective view. Pan keeps the viewing direction. Objects shift sideways, but their relative depth and the perspective convergence stay the same.
- Orthographic view. Pan is a pure 2D slide. A top view panned left shows the same picture, shifted. This is the view for aligning vertices to a grid.
- Camera view. In camera view, a pan changes the view's
view_camera_offset. The viewport stays in camera view and the camera object does not move. Orbiting, on the other hand, leaves camera view. If you want the viewport to move the camera itself, enable Lock Camera to View in the View sidebar tab. Panning then moves the camera object.
Common problems
Orbiting rotates around the wrong spot after a pan
The pivot is view_location, and a pan moves it. Fix this by framing the object you care about. Select it and press Numpad Period (View Selected), or enable Orbit Around Selection in Preferences so the pivot follows the selection. Both are covered in the framing and preferences chapters.
Panning feels too fast or too slow
Pan speed scales with the distance from the view to the pivot. If the pivot sits far away, because you zoomed out or panned a long way, small mouse movements travel large distances. Use View Selected to bring the pivot back close to your work, and the speed will feel normal again.
The pan stops partway
The pointer must stay in the viewport region. Blender wraps the cursor at the edge of the region during a drag, so a long pan is possible. If the drag stops anyway, check that you released Shift or the mouse button, and that another editor did not capture the cursor.
The wrong action happens
If Shift+MMB orbits or zooms instead of panning, another keymap may be active. Check Preferences > Keymap for the 3D View > 3D View (Global) entries. Also check that you are not using the Industry Compatible keymap, which uses different modifiers.
Panning from Python
Panning from a script is useful for repeatable setups, such as placing the view over a given point before a render of the viewport.
The operator bpy.ops.view3d.view_pan works like the keyboard shortcuts. It needs a 3D viewport context, so use temp_override (Blender 3.2 and 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_pan(type='PANRIGHT')
bpy.ops.view3d.view_pan(type='PANUP')
breakThe type values are PANLEFT, PANRIGHT, PANUP, and PANDOWN.
To pan by an exact amount in scene units, change view_location directly. The offset must follow the view's own axes, so rotate a local vector by view_rotation:
import bpy
from mathutils import Vector
for area in bpy.context.screen.areas:
if area.type == 'VIEW_3D':
r3d = area.spaces.active.region_3d
right = r3d.view_rotation @ Vector((1.0, 0.0, 0.0))
up = r3d.view_rotation @ Vector((0.0, 1.0, 0.0))
r3d.view_location = r3d.view_location + right * 2.0 + up * 0.5
print(r3d.view_location)
breakThis slides the view 2 units to the right and 0.5 units up, relative to the screen. The result is the same for any orientation of the view, because the offset is rotated with the view. If you add Vector((2, 0, 0)) directly, the view moves along the world X axis, which only matches "right" in the front and top views.
Choosing a pan method
- Use Shift+MMB when you have a middle button. It is the fastest method and works from any view.
- Use Ctrl+Wheel and Shift+Wheel for small, repeatable shifts.
- Use Ctrl+Numpad 4, 6, 8, and 2 for stepwise movement in orthographic views.
- Use the gizmo hand when you have no middle button or want a visible control.
- Use
view_locationin Python when you need exact distances.
Exercise
You pan the view far to the left while modeling a car. Afterward, Orbit rotates the car around a point off screen, and it feels as if the car swings away. What changed, and how do you fix it?
Show answer
Panning changed view_location, which is the orbit pivot, so orbiting now rotates around the new location. Select the car and press Numpad Period (View Selected) to move the pivot to it. Alternatively, enable Orbit Around Selection in Preferences.
Exercise
In Python, why does adding Vector((2, 0, 0)) to view_location not always pan the view to the right?
Show answer
view_location is in world coordinates, so that offset moves the view along the world X axis. The screen's right direction is view_rotation @ Vector((1, 0, 0)), which equals world X only in some views, such as the front view. Rotate the offset by view_rotation to pan relative to the screen.