Sub topic 4
Array: repeating geometry with a count and relative offset
This chapter assumes basic Blender navigation, Object Mode and Edit Mode, mesh selection, transformations, object origins, and the meaning of vertices, edges, and faces.
The Array modifier creates repeated copies of an object’s geometry without permanently duplicating the mesh. The original object remains the source. Blender evaluates the modifier and displays the copies after it. You can still edit the source object, and every array element updates.
Add an Array modifier
Create a mesh, select it in Object Mode, and open the Modifiers tab. Choose Add Modifier > Generate > Array.
The most important settings are:
| Setting | Purpose |
|---|---|
| Count | Number of visible copies, including the original |
| Relative Offset | Spaces copies according to the object’s bounding-box dimensions |
| Relative Offset X, Y, Z | Controls spacing along each local axis |
| Constant Offset | Adds a fixed distance in Blender units |
| Object Offset | Uses another object’s transform to control spacing and rotation |
With the default Relative Offset, X is set to 1.000. This places each copy one object width from the previous copy. The copies touch edge to edge when the source object has no gap-producing geometry.
For example, a cube with a width of 2 meters and a relative X offset of 1.1 produces a gap of 0.2 meters between neighboring cubes. The distance between their origins is:
object width × relative offset = 2 × 1.1 = 2.2 meters
The Array modifier uses the object’s local axes. Rotating the object can therefore change the direction in which the array appears.
Set the count and relative offset
- Add a cube.
- Scale it along X so it becomes a rectangular block.
- Apply the scale with Object > Apply > Scale.
- Add an Array modifier.
- Set Count to
5. - Enable Relative Offset and set X to
1.1. - Disable Constant Offset if it is enabled.
Applying the scale matters because relative spacing is based on the object’s evaluated dimensions. Unapplied scale can make the distance harder to predict and can cause later modeling operations to behave unexpectedly.
import bpy
# Use the selected object as the source mesh.
obj = bpy.context.active_object
if obj is None or obj.type != 'MESH':
raise RuntimeError("Select a mesh object before running this script.")
# Remove an existing Array modifier with this name, if present.
old_array = obj.modifiers.get("Array")
if old_array:
obj.modifiers.remove(old_array)
array = obj.modifiers.new(name="Array", type='ARRAY')
array.fit_type = 'FIXED_COUNT'
array.count = 5
array.use_relative_offset = True
array.relative_offset_displace = (1.1, 0.0, 0.0)
array.use_constant_offset = FalseThe script changes the selected mesh but does not apply the modifier. The repeated geometry remains procedural, so changing count or the offset is immediate.
Understand what the modifier repeats
The modifier repeats the entire evaluated object geometry at each array position. If the source contains several disconnected parts, Blender repeats all of them together. If you edit the source mesh in Edit Mode, every copy reflects the change.
The object origin and local dimensions affect the result. A source object with an origin at one end can still produce an array, but its spacing may be less intuitive. Keep the source object’s orientation and scale deliberate before tuning the modifier.
Common errors
- The copies overlap: Increase the relative X value or check whether the source dimensions are what you expect.
- The array points in the wrong direction: Check the object’s local axes and rotation.
- Spacing changes after scaling: Apply the object scale, then adjust the offset.
- The source appears missing: The first element is the original object. It may be hidden inside another copy when the offset is too small.
- Editing one copy fails: Edit the source mesh instead. Generated copies are not separate editable objects until you apply or convert the result.
Exercise
A block is 3 meters wide along local X. You set Relative Offset X to 1.25 and Count to 4. What is the distance between neighboring block origins, and how many generated copies appear after the source?
Show answer
The origin spacing is 3 × 1.25 = 3.75 meters. Count includes the source, so three additional copies appear.