Sub topic 1
Objects and Their Data: What You Are Actually Editing
Prerequisites
This chapter assumes that you can navigate Blender's 3D Viewport, select objects, and use Move, Rotate, and Scale. You should also know that a mesh is built from vertices, edges, and faces.
Blender separates a scene object from the data that describes its shape. Understanding this split explains why Object Mode and Edit Mode behave differently.
The object is a scene-level container
An object is an item placed in a Blender scene. A mesh object includes more than its visible shape. It also has:
- A location, rotation, and scale
- An origin, which is the object's reference point
- A name and visibility settings
- Parent and constraint relationships
- Modifiers
- A link to mesh data
The object's transform positions, rotates, and scales the entire object. Moving an object does not normally change the coordinates of the vertices inside its mesh data.
Mesh data describes the shape
Mesh data is a separate data block that stores the geometry:
- Vertices are points.
- Edges connect pairs of vertices.
- Faces describe surfaces enclosed by edges.
For example, a cube object can have a mesh data block containing eight vertices, twelve edges, and six faces. The object places that cube in the scene, while the mesh data defines the cube's shape.
This relationship can be represented as follows:
Blender can let several objects use the same mesh data block. These objects have separate transforms, so they can appear in different places, but editing the shared mesh data changes the shape of every linked object.
Object Mode and Edit Mode target different layers
Object Mode works primarily with whole objects. Selecting a cube and moving it changes the object's location. Rotating or scaling it changes its transform values.
Edit Mode works with the selected object's underlying mesh data. Moving a vertex changes the geometry. The object's location does not change when you move that vertex.
The active mode changes which commands and selections are available. The mode does not create a second copy of the mesh. It changes how Blender interprets your actions.
| Action | Main layer changed | Typical result |
|---|---|---|
| Move the object in Object Mode | Object transform | The whole object changes position |
| Move a vertex in Edit Mode | Mesh data | The object's shape changes |
| Rotate the object in Object Mode | Object transform | The whole object rotates around its origin |
| Extrude a face in Edit Mode | Mesh data | New geometry becomes part of the mesh |
Inspecting the split with Python
The Python API exposes the two layers through different properties. obj.location belongs to the object. obj.data.vertices belongs to the mesh data.
import bpy
obj = bpy.context.active_object
if obj is not None and obj.type == "MESH":
print("Object:", obj.name)
print("Location:", tuple(obj.location))
print("Mesh data:", obj.data.name)
print("Vertex count:", len(obj.data.vertices))
obj.location.x += 2.0
obj.data.vertices[0].co.z += 1.0The first change moves the complete object. The second changes one vertex in the mesh. If multiple objects share obj.data, the vertex edit affects all of them.
Linked and independent copies
To make an independent shape, duplicate the mesh data as well as the object. In the interface, use a normal duplicate when you want linked behavior, or make the object data single-user before editing when each copy needs its own geometry. The exact command depends on whether you want shared geometry or separate geometry.
Exercise
Exercise
A cube is at location X = 5. You enter Edit Mode and move every vertex 2 units along X. What changes, and what does not?
Show answer
The mesh becomes wider or changes position relative to its origin, but the object's location remains X = 5. The vertex coordinates change; the object transform does not.