Sub topic 4
Building a Bone Hierarchy
Prerequisites and the parent-child model
Assume you can navigate Blender, switch between Object, Edit, and Pose modes, and use basic object transforms. You should also understand that a parent controls a child: when the parent moves or rotates, the child follows.
A bone hierarchy is a tree of bones connected by parent-child relationships. The parent is usually closer to the character's center. For example, a thigh can parent a shin, and the shin can parent a foot. This structure lets movement travel through the skeleton.
Creating and connecting bones
Select an armature and enter Edit Mode. Edit Mode changes the armature's structure, so it is where you add, delete, rename, and parent bones.
To create a chain interactively:
- Select the armature and enter Edit Mode.
- Select the existing bone, usually named
Bone. - Rename it in the Bone properties or with the item panel.
- Select the bone's tail and press
Eto extrude a child bone. - Place the new bone. Its head starts at the selected tail, so Blender creates a connected relationship.
- Rename each bone with meaningful names such as
root,spine, andhead.
A connected child shares the parent's tail and follows its length. An unconnected child still has a parent, but its head can be placed elsewhere. Use unconnected parenting when a bone should inherit transforms without forming a continuous physical chain.
| Relationship | Shared position | Typical use |
|---|---|---|
| Connected child | Child head equals parent tail | Legs, arms, and spines |
| Unconnected child | Child can start elsewhere | Eyes, props, or separate controls |
Parenting and common errors
To parent existing bones, select the child first, then the intended parent last. Press Ctrl+P and choose Keep Connected or Keep Offset. The last selected bone becomes the active parent.
Keep Connected moves the child's head to the parent's tail. Keep Offset preserves the child's current position. Choosing the wrong option can change the skeleton's shape.
A common error is trying to create edit bones from Object Mode or Pose Mode. Edit bones exist only while editing the armature. Pose bones are different: they represent the current animation pose and do not change the hierarchy.
import bpy
# Create an armature object.
arm_data = bpy.data.armatures.new("HierarchyData")
arm_obj = bpy.data.objects.new("HierarchyRig", arm_data)
bpy.context.collection.objects.link(arm_obj)
bpy.context.view_layer.objects.active = arm_obj
arm_obj.select_set(True)
# Edit bones define the hierarchy and rest structure.
bpy.ops.object.mode_set(mode="EDIT")
root = arm_data.edit_bones.new("root")
root.head = (0, 0, 0)
root.tail = (0, 0, 1)
spine = arm_data.edit_bones.new("spine")
spine.head = (0, 0, 1)
spine.tail = (0, 0, 2)
spine.parent = root
spine.use_connect = True
head = arm_data.edit_bones.new("head")
head.head = (0, 0, 2)
head.tail = (0, 0, 3)
head.parent = spine
head.use_connect = True
bpy.ops.object.mode_set(mode="OBJECT")Exercise
You need a hand bone to follow an arm bone, but the hand is not located at the arm's tail. Which parenting choice should you use, and why?
Show answer
Use Keep Offset. It creates a parent-child relationship while preserving the hand bone's current position.