Sub topic 3
Orbiting: Rotating the View Around a Point
This chapter assumes you can open Blender with the default keymap and recognize the 3D viewport, the header, and the sidebar. It also assumes you have a middle mouse button, or know the emulation options from the input setup chapter. You will learn what orbiting rotates, how to orbit with the mouse, keyboard, and gizmo, and how the Preferences change its behavior. You will also learn why the view sometimes orbits around the wrong place.
What orbiting actually does
Orbiting does not move or rotate your objects. It moves the viewport's virtual camera along a sphere around a pivot point, and the camera always keeps facing that point. Orbit changes only the view, so it never appears in the undo history and never changes the scene.
Two values define the orbit:
- The pivot is the point the view rotates around. By default it is the view center, which the previous navigation actions (pan, zoom, frame) set.
- The distance is how far the view sits from the pivot. Zooming changes this value.
Because the pivot is just a point in space, it may not be where you are looking. If you pan far to one side and then orbit, the scene swings around an empty spot. Most "the view flew away" problems come from this.
Orbiting with the mouse
The default method is to hold the middle mouse button (MMB) and drag.
- Drag left or right to rotate around the vertical axis.
- Drag up or down to tilt the view over or under the pivot.
If you have no middle button, enable Emulate 3 Button Mouse in Preferences > Input. Then Alt + left mouse button drag orbits. On some Linux desktops the window manager captures Alt + drag. In that case, change the window manager shortcut or use the gizmo.
Trackpad users can also enable Emulate Numpad so the number row keys act as numpad keys. This matters for the keyboard orbit steps in the next section.
Orbiting with the keyboard
The numpad gives repeatable, stepped rotation. These keys are the same as the Orbit entries under View > Navigation.
| Key | Action |
|---|---|
| Numpad 4 | Orbit left |
| Numpad 6 | Orbit right |
| Numpad 8 | Orbit up |
| Numpad 2 | Orbit down |
| Numpad 9 | Flip to the opposite side of the current view |
| Numpad 5 | Toggle perspective and orthographic |
Each press rotates the view by a fixed angle, 15 degrees by default. Six presses of Numpad 4 give a 90 degree turn, which is useful when you want a precise quarter turn without snapping to a standard view. Change the step with Rotation Angle in Preferences > Navigation.
Keep the hand positions in mind. Numpad 4 and 6 orbit around the vertical axis of the screen, not the world Z axis, when you are using the Trackball style (described below). With Turntable they do rotate around world Z.
Orbiting with the navigation gizmo
The navigation gizmo is the axis widget in the top right of the viewport. Click and drag anywhere in the gizmo's circle (not on an axis ball) and the view orbits as if you dragged with the middle mouse button. This is the mouse-only option for tablet and pen users.
Clicking an axis ball does something different. It snaps to that axis view. That behavior belongs to standard views, which a later chapter covers.
Turntable versus Trackball
Preferences > Navigation > Orbit & Pan > Orbit Style has two settings. They decide what dragging up and down does near the poles and whether the horizon can tilt.
| Property | Turntable (default) | Trackball |
|---|---|---|
| Rotation axes | World Z for left and right, screen horizontal for up and down | Free rotation in any direction |
| Horizon | Stays level | Can roll |
| Upside down | Not possible, the view stops at straight up or down | Possible |
| Best for | Modeling, scene layout, anything with a clear "up" | Sculpting or inspecting objects with no natural orientation |
Turntable feels like walking around a statue. Trackball feels like turning an object in your hands. If your view keeps ending up tilted, check whether Orbit Style was switched to Trackball.
Choosing the pivot point
By default the view orbits around its own center point, the same point that panning and zooming act on. Two preferences change this.
- Orbit Around Selection: orbit uses the center of the selected objects (or selected elements in Edit Mode) as the pivot. If nothing is selected, it falls back to the view center. This is the setting most beginners want, because the object you are working on stays in place as you rotate.
- Auto Depth: orbit, and zoom, use the depth of the surface under the cursor. It is useful for large scenes but can cause jumps when the cursor is over empty space.
To set the pivot to exactly what you want without changing preferences, select the object and press Numpad Period (View Selected). That frames the selection and moves the view center to it, so a normal orbit now turns around the selection.
Orbit and projection: Auto Perspective
When you are in an axis view such as Numpad 1 (Front), the projection is orthographic by default. If Auto Perspective is enabled in Preferences > Navigation, orbiting with the mouse from an axis view switches back to perspective. Pressing a standard view key switches to orthographic again. If you want orbit to stay orthographic, turn Auto Perspective off, or press Numpad 5 after orbiting.
The decision path
This diagram summarizes how to pick an orbit method and where to look when it behaves badly.
Common problems
- The object slides out of view when I orbit. The pivot is the view center, not the object. Select the object and press Numpad Period, or enable Orbit Around Selection.
- The view is tilted and I cannot level it. You are probably using Trackball. Switch to Turntable, or press a standard view key such as Numpad 1 to reset the roll.
- Numpad keys do nothing. The laptop has no numpad. Enable Emulate Numpad, or use View > Navigation in the header menu.
- Alt + drag moves the whole window. Your desktop environment is taking the shortcut. Change the system setting or use the gizmo.
- The orbit is too fast or too slow. Orbit speed follows how many pixels you drag across the region. For keyboard steps, adjust Rotation Angle.
- Orbit stops at straight up or down. This is normal in Turntable mode. It prevents the view from flipping over.
Orbiting from Python
The viewport state lives in RegionView3D. The rotation is a quaternion in view_rotation, and the pivot is view_location. You can set both directly, or run the same operator that Numpad 4 triggers. The operator needs a viewport context, which temp_override provides (Blender 3.2 or later).
import bpy
from math import radians
from mathutils import Euler
for area in bpy.context.screen.areas:
if area.type == 'VIEW_3D':
region = next(r for r in area.regions if r.type == 'WINDOW')
r3d = area.spaces.active.region_3d
# Same as pressing Numpad 4 once (15 degrees by default).
with bpy.context.temp_override(area=area, region=region):
bpy.ops.view3d.view_orbit(type='ORBITLEFT', angle=radians(15))
# Set an exact rotation: 90 degrees about X looks along +Y, which is the front view.
r3d.view_rotation = Euler((radians(90), 0, 0)).to_quaternion()
print(r3d.view_location, r3d.view_distance)
breakAssigning view_rotation is instant and needs no context override. The operator is useful when you want the exact behavior of the keyboard shortcut, including the angle you give it.
Exercise
You select a cube, pan the view so the cube sits at the edge of the screen, and then orbit with the middle mouse button. The cube swings out of view. Give two ways to make the next orbit rotate around the cube.
Show answer
Press Numpad Period (View Selected) so the view center moves to the cube. Or enable Orbit Around Selection in Preferences > Navigation, which makes the selection the pivot. Orbit swung the cube away because the default pivot is the view center, not the object.
Exercise
You press Numpad 6 six times. With the default settings, how far has the view turned, and which setting would you change to make each press turn 45 degrees?
Show answer
The view has turned 90 degrees, because each press turns 15 degrees. Change Rotation Angle in Preferences > Navigation to 45.