Sub topic 1
Working in Object Mode
Every action in this tutorial starts in Object Mode. You select objects here, and you move, rotate, and scale them here. This chapter explains what Object Mode is, how to recognize it, how it differs from the other modes, and which interface areas you will use with it.
Prerequisites
This chapter assumes you have:
- Blender installed, with the default interface and the default keymap (left-click select).
- Basic viewport navigation: orbit, pan, and zoom.
- Familiarity with the 3D coordinate system (X, Y, Z axes).
You do not need any Python knowledge to follow the chapter. The Python snippets are optional and only show the same ideas as code.
What Object Mode is
Blender is modal. The same key or mouse click does different things depending on the current mode. A mode is a state that decides what the viewport edits and which tools and shortcuts are available.
Object Mode is the default mode. It works on whole objects, such as a cube, a camera, a light, or a curve. Each object carries a location, a rotation, and a scale. In Object Mode you change those three values. You do not change the shape of the object itself.
Compare this with Edit Mode, which works on an object's internal geometry: its vertices, edges, and faces. If you grab a cube in Object Mode, the whole cube moves. If you grab one vertex in Edit Mode, only that corner moves and the cube's shape changes.
| Mode | What you edit | Typical use |
|---|---|---|
| Object Mode | Whole objects: location, rotation, scale | Arranging a scene, selecting, parenting |
| Edit Mode | Vertices, edges, and faces of one object's geometry | Modeling a shape |
| Sculpt Mode | Mesh shape with brushes | Organic forms |
| Pose Mode | Bones of an armature | Animating a character rig |
Other modes exist, such as Vertex Paint, Weight Paint, and Texture Paint. The available list depends on what kind of object is active. A camera, for example, only offers Object Mode.
Recognizing and changing modes
The mode dropdown is at the left end of the 3D viewport header. It shows the name of the current mode. In a new default scene it reads Object Mode.
Two shortcuts cover most switching:
- Tab toggles between Object Mode and Edit Mode.
- Ctrl+Tab opens a pie menu of the other modes available for the active object.
The viewport also changes with the mode. In Object Mode, a selected mesh shows an orange outline, and the object origin appears as a small dot. In Edit Mode, the outline disappears and vertices, edges, or faces become visible. The header menus change too. Object Mode shows View, Select, Add, and Object. Edit Mode replaces the last one with Mesh and adds the vertex, edge, and face selection buttons.
A common beginner problem is that shortcuts "stop working". Often you are still in Edit Mode after pressing Tab by accident. Check the mode dropdown first, and press Tab to return.
The interface areas you will use
Blender's window is split into editors. Four of them matter for the rest of this tutorial.
- 3D Viewport. The main working area. You select and transform objects here.
- Outliner. A tree of everything in the scene, organized into collections. Clicking a name here selects the object, which is useful when it is hidden behind other objects or off-screen.
- Properties editor. A tabbed panel. Its Object tab shows the Transform values for the active object.
- Sidebar (N key). A panel on the right edge of the viewport. Its Item tab holds the Transform panel, which you will use in a later chapter.
The default scene contains three objects: a Cube, a Camera, and a Light. They are enough to practice every operation in this tutorial.
Object Mode and the data underneath
An object in Blender has two layers. The object layer holds the transform: location, rotation, and scale. The data layer holds the mesh (or curve, light settings, camera settings, and so on). Object Mode edits the first layer only.
This split has a practical effect. Two objects can share one mesh, and scaling one of them in Object Mode does not change the other. It also explains a gotcha that comes up later in this tutorial. After you scale an object in Object Mode, the mesh vertices are unchanged. The object just carries a scale value other than 1. Applying the transform (Ctrl+A) is what bakes that value into the mesh.
Visibility and what can be selected
Not every object in the scene can be clicked. Object Mode has several ways to hide or lock objects.
- H hides the selected objects in the viewport. Alt+H reveals them again.
- The eye icon in the Outliner toggles viewport visibility for an object or a whole collection.
- The arrow icon in the Outliner (shown through the Outliner's filter menu) controls whether an object is selectable. An object that is visible but not selectable ignores clicks in the viewport.
If an object seems impossible to select, check these settings before assuming something is broken. Selection itself is covered in the next chapter.
Looking at Object Mode from Python
Blender's Python API reports the current mode, and it can switch modes. This is useful because many bpy.ops operators only work in a particular mode, and a script that assumes the wrong one fails with a poll error.
import bpy
print(bpy.context.mode) # 'OBJECT' in Object Mode
for obj in bpy.context.view_layer.objects:
print(obj.name, obj.type, obj.select_get())The loop lists every object in the current view layer, its type (for example MESH, CAMERA, or LIGHT), and whether it is selected. In the default scene you will see Cube, Camera, and Light.
To make sure a script runs in Object Mode, switch back before you do object-level work:
import bpy
obj = bpy.context.active_object
if obj is not None and obj.mode != 'OBJECT':
bpy.ops.object.mode_set(mode='OBJECT')
print(bpy.context.mode)The obj is not None check matters. bpy.ops.object.mode_set needs an active object, and without one the call raises an error.
Common errors in Object Mode
- Shortcuts do nothing or act on vertices. You are probably in Edit Mode. Read the mode dropdown and press Tab.
- Nothing responds to clicks on an object. The object may be hidden, unselectable, or in a disabled collection. Check the Outliner.
- A script fails with "context is incorrect". The operator needs a different mode or an active object. Print
bpy.context.modeand checkbpy.context.active_object. - The mouse is over the wrong editor. Blender sends keystrokes to the editor under the mouse pointer. Pressing G with the pointer over the Outliner does not move an object.
Exercise
You press G in the 3D viewport and a single corner of your cube moves instead of the whole cube. What mode are you in, how can you confirm it, and how do you get back to moving the whole object?
Show answer
You are in Edit Mode, where G moves selected vertices, edges, or faces. Confirm it by reading the mode dropdown in the viewport header, which shows Edit Mode, and by noticing the vertices are visible and there is no orange object outline. Press Escape or right-click to cancel the move, then press Tab to return to Object Mode. In Object Mode, G moves the whole object.
Exercise
In a script, why is bpy.context.active_object checked against None before calling bpy.ops.object.mode_set(mode='OBJECT')?
Show answer
The operator needs an active object to act on. If the scene has no active object, bpy.context.active_object is None and the call fails with an error, so the script must check first.