Sub topic 8
Controlling Bend Direction with Pole Targets
Assume you can create an armature, parent connected bones, and add a basic IK constraint in Pose Mode. This chapter focuses on the elbow or knee direction of an IK chain.
Why an IK Chain Needs a Pole Target
An IK target controls where the end of a chain should go. For example, a hand IK target tells the arm where the hand belongs. However, the target usually does not uniquely determine the elbow's direction. The elbow could bend forward, backward, or flip between those positions.
A pole target is a control bone that tells the IK solver which way the joint should point. Place it in front of the intended elbow direction. The solver then rotates the chain so the elbow aims toward that pole.
A pole target does not replace the IK target. The IK target controls position. The pole target controls the chain's bending plane.
Setting Up the Pole Target
Create a separate control bone near the elbow. It should not normally be part of the deforming arm chain. Give it a clear name such as elbow_pole, and place it several Blender units in front of the elbow.
On the IK constraint, set:
- Target to the armature object.
- Subtarget to the hand control bone.
- Pole Target to the armature object.
- Pole Subtarget to the pole control bone.
- Chain Length to the number of bones that should solve.
For a two-bone arm, the chain length is usually 2. The forearm and upper arm are solved, while the hand control bone is only the target.
Choosing the Pole Angle
The pole angle rotates the solver's reference direction around the IK chain. A value of zero is not always correct because the result depends on the bones' rest orientation and local axes. Adjust the angle until the elbow points toward the pole.
import math
import bpy
rig = bpy.data.objects["ArmRig"]
forearm = rig.pose.bones["forearm"]
ik = forearm.constraints.get("IK") or forearm.constraints.new("IK")
ik.target = rig
ik.subtarget = "hand_ik"
ik.pole_target = rig
ik.pole_subtarget = "elbow_pole"
ik.chain_count = 2
ik.pole_angle = math.radians(-90.0)Move the hand target around while watching the elbow. If the elbow points away from the pole, change pole_angle in 90-degree steps. If the chain flips, inspect the pole's distance and the chain's rest pose.
Common Pole Problems
| Symptom | Likely cause | First check |
|---|---|---|
| Elbow bends backward | Incorrect pole angle | Rotate the pole angle by 90 or 180 degrees |
| Chain flips suddenly | Pole is too close to the chain line | Move the pole sideways |
| Elbow points strangely | Pole bone has an unexpected rest orientation | Check its placement and local axes |
A stable pole position gives the solver a clear plane even when the hand moves. Test the control through the full animation range, not only in one pose.
Exercise
A two-bone arm reaches the hand target correctly, but the elbow points backward. What should you change first?
Show answer
Adjust the IK constraint's pole angle, then verify that the elbow pole target is placed clearly to the desired side of the arm.