Sub topic 16
Mirroring a rig
This chapter assumes you can create bones in Edit Mode, parent them, and switch between Object, Edit and Pose modes. It also assumes you know what a vertex group is. The chapter covers how Blender mirrors bones, how to build a symmetrical rig, and the errors that most often break symmetry.
Why symmetry matters
Most characters have a left side and a right side that mirror each other. Building both sides by hand takes twice the work, and the two sides drift apart as you edit them. Blender can build one side and mirror it. The same naming scheme also lets the software mirror poses and vertex weights.
All of this depends on one convention: side suffixes in bone names. Blender reads the name to decide which bone is the opposite of another.
Naming conventions
Blender recognizes these patterns when it flips a name:
| Pattern | Example left | Example right |
|---|---|---|
| Suffix with a dot | `arm.L` | `arm.R` |
| Suffix with an underscore | `arm_L` | `arm_R` |
| Prefix | `L.arm` | `R.arm` |
| Words | `arm.Left` | `arm.Right` |
The most common choice is .L and .R. Pick one scheme and keep it for the whole rig. Mixed schemes make mirror tools fail without any error message.
Names also need to be unique within the armature. When Blender creates a bone whose name already exists, it appends .001. A bone named arm.L.001 no longer flips correctly.
Mirroring the armature in Edit Mode
The usual workflow is to build the left side only. Bones on the center line, such as the spine and head, stay unsuffixed. Then you duplicate the left side across the X axis.
- Select the left-side bones in Edit Mode.
- Choose Armature > Symmetrize.
- Choose the direction, such as -X to +X.
Symmetrize creates new bones on the opposite side and renames them (.L becomes .R). It also copies the parent relationships, connections and roll values. If a bone already exists on the target side, Blender replaces it.
Note that Symmetrize works around the armature object's origin. If the object origin is not on the character's center line, the mirrored bones land in the wrong place. Before you mirror, set the armature origin to X = 0, or check that the character is centered on the world X axis.
The roll of mirrored bones matters here. Roll is the rotation of a bone around its own length. Symmetrize flips roll so that the local axes of the left and right bones mirror each other. This is why you should set roll values on the first side before you mirror, not afterward.
X-Axis Mirror while editing
Symmetrize makes a one-time copy. If you want to keep working on both sides together, turn on X-Axis Mirror in the Armature options (Edit Mode). With it enabled, moving, rotating or scaling a bone applies the same change to its mirrored partner.
This option relies on the name pairing. If hand.L has no matching hand.R, only one bone moves. Blender does not warn you.
The same option exists in Pose Mode. With X-Axis Mirror on, posing arm.L also poses arm.R in the mirrored way. This is useful for symmetrical poses and a hazard for asymmetrical ones, so turn it off when you want the sides to differ.
Copying and pasting poses
For a pose that is different on each side, use the Paste X-Flipped Pose operator. Select the bones, copy the pose with Copy Pose, then paste with Paste X-Flipped Pose. Blender reads the bone names, finds each opposite bone, and applies the flipped transform. You can use this to turn a left-leaning pose into a right-leaning pose.
Mirroring weights
Skinning also needs to be symmetrical. A vertex group named arm.L must have a counterpart arm.R with mirrored weights. Blender provides two tools.
- Weight Paint Mode: enable X Mirror in the Symmetry options. Painting on the left arm also paints the right arm. This requires vertex groups with matching names and a mesh that is symmetrical.
- Mirror Vertex Group: in Weight Paint Mode, use Weights > Mirror. This copies weights from one side to the other. Enable Flip Group Names so that
arm.Lweights go toarm.R.
Topology matters. Blender matches vertices by position, so a mesh that is not symmetrical gives uneven results. If the mesh is almost symmetrical, the Topology Mirror option matches by vertex order and connections instead of position. It only works when the topology is truly mirrored.
Using the Mirror modifier with rigs
If the mesh uses a Mirror modifier, Blender builds the second half from the first. The vertex groups on the first half carry over only if the group names are paired correctly. The Mirror modifier has a Vertex Groups option that mirrors group names for the copied half. Check that it is on. Otherwise the new half stays bound to the left bones.
Scripting a mirrored pair
You can also build symmetry in Python. This script creates a left arm bone and then its right counterpart using the name convention.
import bpy
arm_data = bpy.data.armatures.new("MirrorDemo")
arm_obj = bpy.data.objects.new("MirrorRig", arm_data)
bpy.context.collection.objects.link(arm_obj)
bpy.context.view_layer.objects.active = arm_obj
bpy.ops.object.mode_set(mode='EDIT')
eb = arm_data.edit_bones
left = eb.new("arm.L")
left.head = (0.5, 0, 1)
left.tail = (1.5, 0, 1)
left.roll = 0.3
# Build the right bone by flipping X and the name
right = eb.new("arm.R")
right.head = (-left.head.x, left.head.y, left.head.z)
right.tail = (-left.tail.x, left.tail.y, left.tail.z)
right.roll = -left.roll
bpy.ops.object.mode_set(mode='OBJECT')
# Blender can also tell you the opposite name
print(bpy.utils.flip_name("arm.L"))The call to bpy.utils.flip_name returns arm.R. You can use it in scripts to find a bone's partner without writing your own parsing.
Common errors
- Mirrored side moves wrongly. The armature object has a transform. Apply it.
- Only one side responds in mirror mode. The partner bone has a different name, such as
arm.lwith a lowercase letter or a.001suffix. - Weights land on the wrong side. Flip Group Names was off, or the groups were named inconsistently.
- Mirrored bones twist the wrong way. Roll was set after mirroring, or the roll was edited on one side only.
- Center bones get duplicated. Bones on the center line were selected when you ran Symmetrize. Leave out the spine and head, or give them no suffix so Blender treats them as their own mirror.
Exercise
You mirrored a left arm chain with Symmetrize, but the new right arm appears 2 units away from where it should be. The character's body is centered on the world origin. What is the most likely cause, and how do you fix it?
Show answer
The armature object's origin or transform is not centered on the character's center line, so Symmetrize mirrors across the wrong X position. Undo the mirror, move the armature origin to X = 0 (or apply the object's location, rotation and scale), then run Symmetrize again.
Exercise
You enable X-Axis Mirror in Pose Mode and rotate leg.L. The right leg does not move. Name two things to check.
Show answer
Check that a bone named leg.R exists with exactly the matching name, with no case difference or .001 suffix. Also check that X-Axis Mirror is enabled for Pose Mode and that the rig uses a naming pattern Blender recognizes.