Sub topic 2
Posing with forward kinematics
This chapter assumes you can select objects, switch between Object and Edit modes, read object transforms (location, rotation, scale), and understand parent and child objects.
Posing with forward kinematics
Forward kinematics (FK) is a posing method where you rotate bones one at a time, starting from the root. Each child bone moves with its parent. Select the armature, enter Pose Mode, select a bone, and press R to rotate it. Press I over the viewport to keyframe the pose.
Posing changes pose bones on the armature object. The rest pose stored in the armature data stays unchanged.
Binding a mesh with the Armature modifier
Binding links a mesh to a rig so the bones deform the mesh. Select the mesh, shift-select the armature, and press Ctrl+P. Choose With Automatic Weights. Blender parents the mesh to the armature and adds an Armature modifier that points to the rig.
Vertex groups and weights
A vertex group is a named list of vertices. Blender uses one vertex group per deforming bone, and the group name must match the bone name exactly. Each vertex gets a weight from 0.0 to 1.0. A weight of 1.0 means the bone moves that vertex fully, and 0.0 means the bone ignores it.
import bpy
arm_obj = bpy.data.objects["DemoRig"]
mesh_obj = bpy.data.objects["Cube"]
vg = mesh_obj.vertex_groups.new(name="child")
vg.add([0, 1, 2, 3], 1.0, 'REPLACE')
mod = mesh_obj.modifiers.new(name="Armature", type='ARMATURE')
mod.object = arm_obj
mesh_obj.parent = arm_objThis script assumes a rig named DemoRig with a bone called "child" and a mesh called Cube.
Parenting with automatic weights
Automatic weights let Blender assign weights based on each vertex's distance to the bones. Vertices near a bone receive high weights for it. Treat this result as a starting point. Joints and areas with overlapping bones often need manual correction.
Fixing deformation with weight painting
Bent joints often pinch or collapse. To fix this, select the mesh and switch to Weight Paint Mode. Paint with the weight value set to 1.0 to add influence, or 0.0 to remove it. Select the bone in the Pose Mode or the Bone list to see that bone's weights.
Exercise
A bone named "arm_L" has no matching vertex group on the mesh. What happens when you pose that bone?
Show answer
The mesh does not move at those vertices, because no vertex group links the bone to them.