Sub topic 1
Armatures, Rest Pose, and Pose Bones
Prerequisites
This chapter assumes you can switch between Object, Edit, and Pose Mode in Blender, add bones in Edit Mode, and run a short Python script in Blender's Scripting workspace.
Armatures and the Rest Pose
An armature is the object that holds a skeleton. It stores bones in a rest pose, the neutral shape the rig returns to when nothing moves it. Each bone also has a pose bone on the object, which holds the transform you animate. Editing a pose bone leaves the rest pose untouched, so you can always reset the character.
Parenting and Connected Bone Chains
A child bone inherits the transform of its parent. When use_connect is true, the child head snaps to the parent tail, which forms a continuous chain such as shoulder, elbow, and wrist.
Posing with Forward Kinematics
Forward kinematics (FK) poses a chain from the root outward. Rotating the upper arm moves the forearm, and rotating the forearm moves the hand. FK gives direct control and suits limbs that swing freely, such as a tail.
import bpy
arm_data = bpy.data.armatures.new("ArmRig")
rig = bpy.data.objects.new("ArmRig", arm_data)
bpy.context.collection.objects.link(rig)
bpy.context.view_layer.objects.active = rig
rig.select_set(True)
bpy.ops.object.mode_set(mode='EDIT')
eb = arm_data.edit_bones
upper = eb.new("upper_arm")
upper.head = (0.0, 0.0, 0.0)
upper.tail = (1.0, 0.0, 0.0)
fore = eb.new("forearm")
fore.head = (1.0, 0.0, 0.0)
fore.tail = (2.0, 0.0, 0.0)
fore.parent = upper
fore.use_connect = True
bpy.ops.object.mode_set(mode='POSE')
forearm = rig.pose.bones["forearm"]
forearm.rotation_mode = 'XYZ'
forearm.rotation_euler = (0.0, 0.0, 0.5)What Inverse Kinematics Solves
Inverse kinematics (IK) works in the opposite direction. You place a target, and a solver computes the joint rotations that reach it. FK asks which rotations produce a pose. IK asks where the hand should be.
Bone Constraints: Stack, Targets, and Influence
A constraint is a rule that sets a bone's transform from another object or bone. Constraints form a stack, and Blender evaluates them in order from top to bottom. Each constraint has a target, which it reads from, and an influence from 0 to 1 that sets how strongly it applies.
Owner and Target Spaces
Each constraint has an owner space, the frame of the bone being moved, and a target space, the frame of the object it reads. Common spaces are World, Local, and Pose. The same constraint can produce different results in different spaces, so choose the space that matches the motion you want.
Exercise
The script above stores the forearm rotation on the pose bone. Does this change the rest pose?
Show answer
No. The rotation lives on the pose bone, and the rest pose stays in the armature data. Alt+R in Pose Mode clears the pose and restores the original shape.