Background
Background

Dynamic control rig generation for rigid skeletal meshes

I built a Control Rig that generates animation controls for a mech’s backpack flight unit, then uses their rotations to drive its articulated parts within supplied limits. The Gundam-style backpack gave me a mechanical example to animate: its rigid-looking panels move through a skeletal hierarchy, rather than a rigid-body physics simulation.

The flight unit moves into position behind the mech in the animation demonstration.

Generate controls from the target bones

The aim was to reuse the construction logic across different skeletons. It still needs the target bone names and a compatible setup. This example demonstrates one hierarchy, with left and right wing chains.

Skeletal hierarchy with left and right wing bone chains beside the blue, white and gold backpack mesh.
The named wing chains provide the target bones for this backpack’s controls.

The Construction Event prepares and spawns controls at the supplied bones during initialization. Forwards Solve then uses those controls to drive the bones. Control generation belongs to construction, not a spawning step repeated every animation frame.

Control Stack at Item, from Epic’s StandardFunctionLibrary, returns the generated control’s item key, which identifies it in the rig. Set Item Metadata stores that key under Control on the source bone. Add Tag marks the same bone WingBlade.

Construction graph connecting Control Stack at Item to Set Item Metadata and Add Tag, storing the control key and tagging the source item WingBlade.
The graph creates the control, stores its association with the bone and tags that bone.

During development, I encountered metadata lag and used tag lookup to find the relevant bones. That was a workaround in this project. Tags are metadata too; the Control field still stores the generated-control reference.

Clamp rotation during Forwards Solve

Get Transform reads the control’s current transform in local space. The solve graph uses only its rotation. To Euler converts the quaternion rotation into three angles using ZYX order. Each angle is clamped between supplied minimum and maximum values; From Euler converts the result back using the same order.

Forwards Solve graph reading the current local control rotation, converting to ZYX Euler angles, clamping X, Y and Z separately, then feeding the converted rotation into Offset Transform on a bone.
The connected path carries rotation only. The control’s translation and scale outputs are unconnected.

Offset Transform composes the resulting rotational offset with the bone’s existing hierarchy transform by post-multiplication. Here, its weight is 1 and child propagation is enabled. The local-space setting belongs to the control read; correct motion still depends on compatible axes, hierarchy and initial transforms. The screenshot does not show the lookup implementation or numerical limits.

Selecting and rotating the generated controls changes the poses of individual backpack parts.

Animate the generated controls

The generated controls can be keyframed in Sequencer. The preview below shows wing animation created with this rig.

The wing animation viewed on the backpack mesh in the editor.

Sharing those keys across targets still requires compatible control identities, meanings, spaces, initial setup and limits. The recordings demonstrate this backpack example; they do not establish automatic bone mapping or animation retargeting across arbitrary skeletons.

Move over the bright dot and follow the line. P pauses. Escape closes the game.

Sigil Trace

Move over the sigil before time runs out.

Score0000
Spells00
Best on this browser0000
I · KINDLE SPELL 01
START

Trace the Sigil with your mouse

Start at the glowing dot and follow the line. No click needed.

or press Enter
Move your mouse onto the bright dot. No click needed.