Sub topic 20
Overview of the Rigify add-on
Rigify is an add-on bundled with Blender that builds a complete animation rig from a simplified template skeleton. This chapter covers how it works, what it produces, how to bind a mesh to the result, and where it stops being the right tool.
It assumes you know how to create bones in Edit Mode and parent them. It also assumes you can bind a mesh with automatic weights, and that you know deform bones, control bones, IK, constraints and bone collections. Rigify automates the setups you have built by hand in earlier chapters.
The metarig and the generated rig
Rigify works with two armatures.
- The metarig is the armature you edit. It has few bones, and each bone is tagged with a Rigify type that says what it should become, such as an arm, a leg or a spine.
- The generated rig is a separate armature object that Rigify builds from the metarig. It contains the controls, IK/FK setups, constraints, drivers and bone collections that animators use.
You never animate the metarig. You adjust its proportions to fit your character, press a button, and animate the generated rig.
Enabling Rigify and adding a metarig
- Open Edit > Preferences > Add-ons, search for "Rigify" and enable it.
- Choose Add > Armature > Human (Meta-Rig) in Object Mode.
- Move into Edit Mode and fit the bones to your mesh. Scale and move the whole metarig first, then adjust individual bones.
The human metarig includes a spine, head, arms, hands with fingers, legs, feet and a face. Other metarig presets exist for animals such as cat, wolf, horse and bird.
Rigify types
Each metarig bone has a Rigify Type field in the Bone properties tab. In Pose Mode this field decides what the bone generates. A few common types:
| Rigify type | What it builds |
|---|---|
| `limbs.arm` | Arm with an IK/FK switch, stretch and a pole target |
| `limbs.leg` | Leg with an IK/FK switch, foot roll and a pole target |
| `spines.basic_spine` | Spine chain with torso, hips and chest controls |
| `spines.super_head` | Neck and head with a follow option |
| `limbs.super_finger` | Finger with curl controls |
| `faces.super_face` | Full face rig with eye, lip and brow controls |
| `basic.super_copy` | A single bone copied into the rig as a control or deform bone |
Types are applied to the first bone of a chain. The following bones in the chain are taken as part of that limb, so a limbs.arm type on the upper arm bone covers the forearm and hand bones below it.
Generating the rig
With the metarig selected, open Object Data properties > Rigify Buttons and click Generate Rig. Rigify creates a new object, named rig by default, and hides nothing from the metarig. You can hide the metarig afterwards.
If you click Generate again, Rigify overwrites the same target rig. You can change which armature object is the target in the Advanced options. Do not hand-edit the generated rig and expect the changes to survive regeneration, because each run rebuilds the rig from scratch. Fix problems in the metarig, then generate again.
The generated rig uses name prefixes, a convention you will recognize from the deform and control bone chapter.
| Prefix | Meaning |
|---|---|
| `ORG-` | Original bones that copy the metarig, used as anchors for constraints |
| `MCH-` | Mechanism bones that do internal work such as IK helpers; not meant for animators |
| `DEF-` | Deform bones, the only bones that move the mesh |
| no prefix | Control bones, which animators pose and keyframe |
Binding a mesh to the generated rig
Bind the mesh to the generated rig, not to the metarig.
- Select the mesh, then Shift-select the generated
rig. - Press Ctrl+P and choose With Automatic Weights.
The automatic weights step only creates vertex groups for deforming bones, so the result has groups named DEF-upper_arm.L and so on. The control and mechanism bones get no weights. If the deformation needs repair, use Weight Paint Mode on the DEF- groups as before.
Binding to the metarig instead gives you vertex groups named after the metarig bones, which the generated rig does not use. You would need to rename the groups to the DEF- names by hand.
Using the controls
The generated rig exposes its options through custom properties on the control bones.
- IK/FK switch: limb controls carry an
IK_FKproperty. A value of 0 uses IK and 1 uses FK. Keyframe the property to switch mid-shot. - IK stretch and pole target: the limb IK controls include stretch settings and a pole bone that sets the knee or elbow direction.
- Bone collections: in Blender 4.0 and later, Rigify groups controls into bone collections, such as Face, Torso, Arm.L (IK) and Arm.L (FK). Rigify adds a Rig UI panel in the sidebar with toggles for these collections. In earlier versions these were numbered bone layers.
- Custom shapes: every control already has a custom shape assigned, so you can select controls by their visual shape in the viewport.
Setting up Rigify from Python
You can generate a rig with a script, which helps when building many characters. This script needs Blender 4.x with Rigify available.
import bpy
# Make sure the add-on is on, then create the human metarig
bpy.ops.preferences.addon_enable(module="rigify")
bpy.ops.object.armature_human_metarig_add()
metarig = bpy.context.object
# Each pose bone stores its Rigify type as a string property
for pbone in metarig.pose.bones:
if pbone.rigify_type:
print(pbone.name, "->", pbone.rigify_type)
# Generate the rig; the new object is named "rig" by default
bpy.ops.pose.rigify_generate()
rig = bpy.data.objects.get("rig")
deform = [b.name for b in rig.data.bones if b.name.startswith("DEF-")]
print(len(deform), "deform bones")The loop only reads the types. To change one, assign a string such as metarig.pose.bones["upper_arm.L"].rigify_type = "limbs.arm". Do this before calling rigify_generate.
Limits and failure modes
- Generation errors: Rigify raises an error when a bone has an invalid type or a chain has the wrong number of bones. The message names the bone, so fix that bone in the metarig.
- Bone roll: wrong roll on metarig bones gives twisted controls and flipped limbs. Rigify expects consistent roll along each limb, so check roll in Edit Mode.
- Non-humanoid characters: Rigify types cover many shapes, but a rig for an unusual creature may need many
basic.super_copybones. At that point, a hand-built rig can be simpler. - Scene dependencies: the generated rig relies on drivers that run Python expressions. Blender's auto-run scripts setting must allow them, or some controls will not respond when you open the file.
- Pipeline cost: the generated rig has hundreds of bones. A game export often needs only the
DEF-bones, so you may need to bake the animation to them and export those alone.
Exercise
You fitted the human metarig to your character, generated the rig, and bound the mesh to the metarig with automatic weights. The generated rig's controls do not move the mesh. Why, and what do you do?
Show answer
The generated rig deforms only through its DEF- bones, and a mesh bound to the metarig has vertex groups named after the metarig bones, so nothing matches. Remove the old binding, then parent the mesh to the generated rig with Ctrl+P > With Automatic Weights. That creates DEF- vertex groups and an Armature modifier that points at the generated rig.
Exercise
You edited a control bone's shape in the generated rig, then regenerated the rig after changing the metarig. Your edit is gone. Why, and where should such changes be made?
Show answer
Generate Rig rebuilds the target rig from the metarig, which overwrites manual edits. Make persistent changes in the metarig, through its Rigify types and options, or in a script that runs after generation.