Sub topic 12
Beyond Edit Mode: Sculpt, Paint, and Pose modes
This chapter assumes you can already switch between Object Mode and Edit Mode, you know that an object's transform is separate from its mesh data, and you can use the Python console or Text Editor for the short scripts. Edit Mode is one of several modes that change which data you edit and which tools you get. Here we cover the other common ones: Sculpt, the three paint modes, and Pose Mode.
Every mode targets a specific kind of data
A mode is a state of the active object. It controls which of the object's data the tools change, and it swaps the toolbar, header, and many shortcuts to match.
| Mode | Edits | Stored in | Typical object |
|---|---|---|---|
| Object | Transform, modifiers, whole-object settings | Object | Any |
| Edit | Vertices, edges, faces (or bones, curve points) | Mesh data (or armature, curve data) | Mesh, Armature, Curve |
| Sculpt | Vertex positions, using brushes | Mesh data | Mesh |
| Vertex Paint | Per-vertex color | Color attributes on the mesh | Mesh |
| Weight Paint | Per-vertex weights for each vertex group | Vertex groups on the mesh | Mesh |
| Texture Paint | Pixels of an image | An image datablock, shown through the UV map | Mesh |
| Pose | Pose bone transforms | Object (the armature's pose) | Armature |
Two points follow from the table. First, the mode list in the mode menu depends on the active object's type. A camera has only Object Mode, and an armature offers Object, Edit, and Pose. Second, only one object is the active object at a time, so the mode menu always describes that one. The exception is multi-object editing, which you met earlier for Edit Mode. Several mesh objects can share Edit Mode, Sculpt Mode, or the paint modes only if you enter the mode with them all selected, and tool support varies by mode.
Switching: the mode menu and Ctrl+Tab
The mode menu at the left of the 3D Viewport header lists every mode available for the active object. In most setups, Ctrl+Tab opens a pie menu with the same choices. Tab still toggles Object and Edit Mode.
Armatures are a special case. With an armature active, Ctrl+Tab toggles directly between Object Mode and Pose Mode rather than opening a pie menu. Tab enters Edit Mode on the armature's bones.
Leaving a mode returns you to Object Mode, not to the mode you were in before. Moving from Sculpt to Weight Paint is possible straight from the menu, but Blender treats it as leaving one mode and entering another.
Sculpt Mode: shaping a mesh with brushes
Sculpt Mode moves vertices with brushes instead of selections. You do not select vertices first. You paint strokes, and the brush displaces the geometry under the cursor. The changes land in the same vertex positions that Edit Mode edits, so you can sculpt, drop into Edit Mode, and keep modeling.
Things to know:
- Resolution limits detail. A brush can only move vertices that exist. A low-poly cube will deform crudely. You raise resolution in one of three ways: a Multiresolution modifier (subdivision levels you can sculpt on and return from), Voxel Remesh (rebuilds the mesh as an even grid), or Dynamic Topology (adds and removes geometry under the brush as you stroke).
- Dynamic Topology and Voxel Remesh change the mesh structure. They discard UV maps and can discard other per-vertex data. Do your UVs after sculpting, not before.
- Brush settings (radius, strength, falloff) live in the tool settings and the header. F resizes the radius and Shift+F changes strength, both by dragging.
- Masks and face sets protect or isolate regions. Masked vertices do not move.
Paint modes: three kinds of data
The three paint modes look similar but write to different places.
Vertex Paint stores a color value per vertex (or per face corner) as a color attribute. It is cheap and resolution-bound, as with sculpting. A material can read it through an Attribute or Color Attribute node. Exports such as glTF can carry it.
Weight Paint edits the weights of vertex groups. A weight is a value from 0 to 1 per vertex, shown as a blue-to-red heat map. The group being painted is the active group in the Object Data properties. Weights drive modifiers, particle systems, and above all armature deformation: a bone moves the vertices in the group that shares its name, in proportion to their weights.
Texture Paint writes pixels into an image. It needs a UV map on the mesh and a material with an image texture assigned. If either is missing, the tool settings warn you and offer to add them.
Gotcha: painted images are not saved with the .blend by default
A texture-paint image is a datablock that exists only in memory until saved. If you close Blender without using Image > Save All Images (or saving the image from the Image Editor), the paint is lost. Blender marks unsaved images with an asterisk in the image menu.
Pose Mode: moving bones without changing the rig
An armature has two sets of bones. Edit bones define the rest pose: where each bone sits when the rig is at rest. Pose bones hold the current transform relative to that rest pose. Edit Mode changes the first, and Pose Mode changes the second.
This split is the Object-versus-Edit split again. A bone you move in Pose Mode has changed its pose transform and left its rest position alone, so you can clear the pose (select all, then Alt+G, Alt+R, and Alt+S) and return to the rest pose. A bone you move in Edit Mode has changed the rig itself, and every pose is now relative to the new rest position.
If a mesh is parented to the armature with an Armature modifier, entering Pose Mode and rotating a bone deforms the mesh through its vertex groups. When weights look wrong, the fix happens in Weight Paint Mode on the mesh, not in Pose Mode.
Scripting these modes
bpy.ops.object.mode_set() accepts the mode names 'OBJECT', 'EDIT', 'SCULPT', 'VERTEX_PAINT', 'WEIGHT_PAINT', 'TEXTURE_PAINT', 'POSE', and 'PARTICLE_EDIT'. Read the current value from obj.mode, which uses the same names. bpy.context.mode uses a different set (such as 'PAINT_WEIGHT' and 'EDIT_MESH'), so do not compare the two.
Requesting a mode the object does not support, or running with no active object, raises a RuntimeError. The script below wraps a mode change so it always restores the previous mode.
import bpy
from contextlib import contextmanager
@contextmanager
def temporary_mode(obj, mode):
"""Make obj active, enter `mode`, and restore the old mode and active object."""
view_layer = bpy.context.view_layer
previous_active = view_layer.objects.active
previous_mode = obj.mode
view_layer.objects.active = obj
try:
bpy.ops.object.mode_set(mode=mode)
yield obj
finally:
view_layer.objects.active = obj
bpy.ops.object.mode_set(mode=previous_mode)
view_layer.objects.active = previous_active
obj = bpy.context.active_object
if obj is not None and obj.type == 'MESH':
with temporary_mode(obj, 'SCULPT'):
print(obj.mode) # SCULPT
print(obj.mode) # back to the original modePose bones are reachable from the data API without changing mode, but the mode still matters for what the viewport shows and for operators:
import bpy
from math import radians
arm = bpy.context.active_object
if arm is not None and arm.type == 'ARMATURE':
bpy.ops.object.mode_set(mode='POSE')
bone = arm.pose.bones[0]
bone.rotation_mode = 'XYZ'
bone.rotation_euler.x = radians(30) # pose change; rest pose untouched
print(bone.name, bone.rotation_euler)arm.data.edit_bones, by contrast, holds data only while the armature is in Edit Mode. Reading it outside Edit Mode gives an empty collection, and writing to it is not valid.
Common errors
- "Context is incorrect" or a RuntimeError from
mode_set. The active object is missing, hidden, locked from editing, or of a type that lacks that mode. Setview_layer.objects.activefirst. - A mode you expected is missing from the menu. The active object is the wrong type, for example an Empty or a Curve in a paint mode.
- Brush does nothing in Weight Paint. The mesh has no active vertex group, or the group's lock is on.
- Texture Paint shows pink or refuses to paint. There is no UV map, or the material has no image texture node selected.
- Pose changes seem to vanish. You moved a bone in Edit Mode when you meant Pose Mode, which changed the rest pose.
Exercise
You are rigging a character. A forearm bone looks correctly placed, but when you rotate it in Pose Mode, the elbow mesh collapses. Which mode do you use to fix the collapse, which object is active, and why is Pose Mode or Edit Mode on the armature not the fix?
Show answer
Use Weight Paint Mode with the character mesh active. The collapse comes from vertex group weights, which are per-vertex data stored on the mesh. Pose Mode only changes the pose bones' transforms, and armature Edit Mode only changes the rest position of the bones. Neither one changes how strongly each vertex follows a bone.
Exercise
A script calls bpy.ops.object.modeset(mode='WEIGHTPAINT') and raises a RuntimeError. Give two likely causes and a check for each.
Show answer
First, the active object may be missing or not a mesh. Check bpy.context.active_object and its type. Second, the object may be hidden or otherwise unable to change mode. Check obj.visible_get() and make the object active through view_layer.objects.active before calling the operator.