IK/FK switching

Also known as: IK-FK blend

On this page 7

IK/FK switching is a rigging feature that lets an animator change how a limb is controlled, moving between forward kinematics (FK), where each joint is rotated in turn, and inverse kinematics (IK), where the end of the chain is placed and the joints solve themselves. In Rigging & animation for 3D graphics & animation, an IK-FK blend is a standard part of character arms, legs, tails and other jointed chains.

The goal is to use the right control method for each moment of a shot. A swinging arm is easier to animate in FK, while a hand pressing on a table or a foot planted on the ground needs IK. Switching makes both possible in one rig, and matching keeps the pose continuous when the mode changes.

How IK/FK switching works inside a rig

A switchable limb is usually built from three joint chains: an FK chain driven by rotation controls, an IK chain driven by an IK handle and a pole vector, and a result chain that actually deforms the mesh through skinning. The result joints follow both source chains through orientation or parent constraints.

A single blend attribute, typically ranging from 0 for full FK to 1 for full IK, sets the weights of those constraints. At intermediate values the result chain interpolates between the two poses, and the rig also toggles the visibility of the matching controls so that the animator sees only the active set.

ComponentRoleAnimated by
FK chainRotations passed from parent to child jointShoulder, elbow and wrist rotation controls
IK chainJoint angles solved from the end effector positionIK control and pole vector
Result chainBlended pose that deforms the meshConstraints, never keyed directly
Switch controlHolds the blend attributeAnimator, usually with stepped keys
Components of a typical switchable limb

Choosing between IK and FK

The choice depends on what drives the motion. FK reproduces motion that originates at the body and travels outward, giving natural arcs and overlapping action. IK suits motion in which the end of the limb is fixed or guided by contact with something external.

Animation taskPreferred modeReason
Arm swing in a walk cycleFKArcs come naturally from shoulder rotation
Hand on a railing or wallIKHand stays fixed while the body moves
Feet during walkingIKPlanted feet must not slide
Throwing or punchingFK, then IK at contactArc during the swing, precise target at impact
Climbing a ladderIK with frequent switchesHands and feet alternate between gripping and moving
Tail or tentacle motionFK, sometimes spline IKWave-like follow-through is easier to shape
Typical tasks and the preferred mode

Matching poses when switching modes

Switching without matching causes a visible pop, because the inactive chain usually sits in a different pose. IK/FK matching, also called snapping, solves this by moving the controls of the target mode to the current world-space pose before the blend value changes.

  1. On the frame before the switch, the animator keys the current mode so that the pose is preserved.
  2. A matching script reads the world transforms of the result joints.
  3. For FK to IK, it places the IK control at the wrist or ankle and calculates the pole vector position from the elbow or knee.
  4. For IK to FK, it copies the joint rotations onto the FK controls.
  5. The blend attribute is keyed with stepped or constant tangents on the switch frame, so that the change happens exactly on one frame.

Most professional rigs ship with one-click match buttons or picker tools. Modern rigging systems in Blender, Maya and other packages, including auto-rigging tools, generate these scripts automatically, but pole vector matching still needs careful testing because joint orientation errors produce small offsets.

Instant switching versus continuous blending

Studios use the blend attribute in two styles. Instant switching changes from 0 to 1 on a single frame after matching, while continuous blending animates the attribute across several frames. Each approach has a distinct effect on the curves in the graph editor and on the motion.

ApproachBehaviorAdvantagesRisks
Instant switch with matchingMode changes on one frameClean curves, no drift, predictable resultRequires matching tools and keyed handover frames
Continuous blendWeights interpolate over timeQuick to set up, smooth transitionsLimb can shorten or drift during the blend
Two ways to use the switch attribute

The drift during a blend occurs because the rig interpolates joint rotations, not the hand position. Even if both chains end at nearly the same point, the averaged rotations can pull the wrist inward, so long blends are generally avoided in feature animation.

Common problems and good rigging practice

Reliable switching depends on consistent joint orientation across all three chains and on a pole vector placed in the plane of the limb. When these conditions are not met, switching produces flips, popping elbows or a gradually rotating knee.

  • Elbow or knee flips usually indicate a pole vector that crosses the limb plane.
  • Pops on the switch frame mean the pose was not matched or the handover frame lacked keys.
  • Space switching conflicts: an IK hand parented to world must be matched again when its parent space changes.
  • Gimbal lock in FK controls can make matched rotations unusable, so rotation orders should be set for the limb’s dominant axis.
  • Stretch settings must match in both modes, otherwise limb length changes when switching.

A non-technical view

Imagine moving a puppet’s arm in two ways. You can bend each joint yourself, shoulder first, then elbow, then wrist. Or you can grab the hand and put it where you want, letting the arm follow. Both are useful at different times.

IK/FK switching gives a 3D character’s arms and legs both ways of moving, and lets the animator change from one to the other in the middle of a scene without the arm jumping.

A concrete example

An animator on a short film works on a 120-frame shot in which a character walks to a door, grabs the handle and pulls it open. During the walk, from frames 1 to 48, the right arm swings in FK mode to keep loose, natural arcs.

On frame 49 the hand reaches the handle. The animator presses the rig’s match button, which places the IK control exactly at the wrist, then keys the switch attribute from 0 to 1 with a stepped tangent. From then on the hand stays locked to the handle while the body leans back and the shoulder rotates. The door animation and the IK control are kept in sync, and the shot passes review without any visible pop at the handover frame.