ue-mcp-animation
Skill379 starsChanged 2 months agoMITView on GitHub
Use when creating, modifying, retargeting, rigging, constraining, or validating skeletal animation through UE-MCP. Covers native UE 5.8 IK Rig and Retargeter authoring, the Control Rig begin/read/apply/bake loop, generic contact locks, per-rig anatomical and mirrored-axis discovery, quaternion keying, deterministic bone analysis, and exact fixed-frame Unreal capture.
In this repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ue-mcp-blueprintSkill
- ue-mcp-epic-routingSkill
- ue-mcp-native-cppSkill
- ue-mcp-niagaraSkill
- ue-mcp-workflowSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 5 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create quality animation from measured pose constraints, not guessed control angles.
- Distinctive: line 16
Use the existing skeleton-edit actions for bone creation, removal, reparenting, and reference-pose changes.
- Very specific: line 19
Call asset(action="list_skeleton_bones", assetPath=<mesh>, includeTransforms=false) and use the returned names exactly.
- Very specific: line 21
Call asset(action="read_skeletal_mesh_skin_weights", assetPath=<mesh>, lodIndex=0, vertexIndices=[...]).
- Very specific: line 24
Call asset(action="set_skeletal_mesh_skin_weights", assetPath=<mesh>, lodIndex=0, edits=[{vertexIndex, influences:[{boneName, weight}]}]) …
- Very specific: line 40
Call project(action="get_status").
- Very specific: line 55
When IK/retarget assets are part of the job, use read_ik_rig and read_ik_retargeter first.
- Very specific: line 62
Create a versioned session with begin_control_rig_edit.
- Very specific: line 70
Call read_control_rig_edit at rest, transitions, extrema, and end in both local and global space.
- Very specific: line 81
When an axis is uncertain, make an immutable probe session.
- Distinctive: line 111
Read back the edited frames in local and global space.
- Very specific: line 120
Run analyze_animation on source and output using the same mesh, explicit frames, and bones.
- Distinctive: line 126
Check numeric integrity, invalid transforms, selected-bone bounds, root displacement/speed, and loop seam metrics.
- Very specific: line 133
Use the analyzer's rateScale, effectiveDurationSeconds, and per-notify rawTriggerTimeSeconds / effectiveTriggerTimeSeconds fields when …
- Distinctive: line 152
Keep versioned V&V fixtures for a from-scratch gesture, full-body IK authoring, a retarget between known skeletons, a copied animation …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
UE-MCP native animation workflow
Create quality animation from measured pose constraints, not guessed control angles. Control names, local axes, palm axes, handedness, and scale are properties of the selected rig. Discover them again for every unfamiliar rig; never paste values from another rig or negate a left-side Euler pose to make a right-side pose.
Focused skeletal mesh weighting
Use the existing skeleton-edit actions for bone creation, removal, reparenting, and reference-pose changes. For a small, explicit skin-weight correction:
- Call
asset(action="list_skeleton_bones", assetPath=<mesh>, includeTransforms=false)and use the returned names exactly. - Call
asset(action="read_skeletal_mesh_skin_weights", assetPath=<mesh>, lodIndex=0, vertexIndices=[...]). Keep each read to the selected source vertex IDs; the action caps a call at 256 vertices. - Call
asset(action="set_skeletal_mesh_skin_weights", assetPath=<mesh>, lodIndex=0, edits=[{vertexIndex, influences:[{boneName, weight}]}])with the complete replacement influence set for every selected vertex. Inspect the returnedbeforeandafter: Unreal normalizes and prunes the list, and stores source weights as uint16 values. The render buffer may quantize again to 8-bit unless the LOD enables high-precision skin weights. - Open the rebuilt mesh with
editor(action="open_asset", assetPath=<mesh>)and capture the asset editor at the reference pose and useful preview poses. Re-read the same selected vertices before moving on.
The weight setter edits one existing source LOD and profile, saves only when a selected value changed, and leaves all unlisted vertices, LODs, and profiles alone. It does not infer bones, fit a mesh, or auto-rig a character.
Required loop
- Call
project(action="get_status"); verify the intended project and editor. - Establish the character's authoring baseline before editing clips. Search
for a Control Rig already bound to the target mesh/skeleton and inspect it
with
read_control_rig_hierarchyandread_control_rig_graph. It must have the controls, Forward Solve, and Backward Solve required for the intended edits. If the project or character has no suitable rig, create one first with the bundled Epic 5.8 controlrig actions (epic_create,epic_import_bones_from_asset,epic_add_control, deliberate Forward Solve nodes/links, andepic_add_backward_solve_graph), then save the exact rig withasset(epic_save_assets).epic_createalone creates no imported bones, authored controls, or solver wiring. Run an unchanged source-to-controls-to-bones round trip on the exact production mesh. Do not begin production work on an unverified or merely name-compatible rig. - Resolve the source AnimSequence, mesh, skeleton, verified Control Rig, and
frame rate.
When IK/retarget assets are part of the job, use
read_ik_rigandread_ik_retargeterfirst. On UE 5.8 useconfigure_ik_rigfor validated roots, ancestry-valid chains, concrete goals, solver connections and effectors; useconfigure_ik_retargeterfor the default op stack, source and target rig assignment to every op, auto/manual mappings, preview meshes, and a named retarget pose. Read both assets back after saving. A chain's goal string is not proof that a goal or solver exists. - Create a versioned session with
begin_control_rig_edit. Use a unique LevelSequence path andbindingTag, an end-exclusive frame range, andonConflict="error". UserigMode="asset"for a project rig or"fk"only when generated FK controls are intentional. The source must be non-additive and mesh-compatible; flatten an additive clip against its intended base first.layeredcontrols the session layer, not an additive source base. A finite non-zero sourceRateScaleis compensated in Sequencer so the raw timeline maps once without modifying the source asset; zero is rejected. - Call
read_control_rig_editat rest, transitions, extrema, and end in bothlocalandglobalspace. Hereglobalis rig/global (normally mesh component) space, not actor world space. - Inspect every control's
controlType,animatable, and enum metadata. Write scalars with the matchingset_bool,set_float, orset_int; enum values must come fromenumOptions. Never writeanimatable=falsecontrols. - Define anatomical component-space targets, then solve proximal to distal: shoulder/upper arm, elbow pole and bend, forearm direction, wrist, palm normal, then secondary motion. For a wave, the forearm must rise, the wrist must sit above the elbow/near the shoulder region, and the probed palm normal must face the intended viewer before wrist oscillation is added.
- When an axis is uncertain, make an immutable probe session. Apply a small
positive and negative rotation to one local axis at one fixed frame, bake,
and inspect the resulting component-space shoulder/forearm/hand landmarks
with
analyze_animation. Probe the right side separately; mirrored parents or negative scale can reverse anatomical meanings. Preserve the full scale read from the control. - Apply absolute
set_keystransforms with finite normalized quaternions, complete translation/rotationQuaternion/scale payloads, and strictly increasing frames. Preserve translation and scale unless intentionally editing them. If the source bake has dense keys, key every affected frame; sparse keys will not replace the intervening source motion. Apply related controls and scalar switches in one transaction. For a fixed contact, usecontact_lockin the same operation batch. Supply a keyable translatable driver, optional driven bone/socket, inclusive frame range, component-space target, optional pole/stabilizer controls, and position/rotation tolerances. The session must contain one source animation section. The bridge samples it per frame, writes dense smooth-edged keys, and transactionally reads back the driver and stabilizers. A driven bone/socket returnsverification=bake_and_analyze_required; bake, analyze every constrained frame, and reject the output if its residual misses the motion's acceptance tolerance. To follow a moving source bone/socket, settargetReference; omittargetto preserve the first-frame relative transform, or providetargetas an explicit transform in the reference's space. This is the generic two-hand/hand-to-prop relationship primitive. FK contacts whose translation is ignored by skeleton retargeting use a local rotation-chain solve and reportsolver=fk_rotation_chain; that path requires a driven bone and does not accept stabilizers. Position-only locks leave the driven control orientation unkeyed. The bridge does not guess the driver, pole, foot roll, friction, joint limits, or pelvis compensation. - Read back the edited frames in local and global space. Reject elbow flips, discontinuities, wrong forearm direction, wrong palm normal, or unexpected changes outside the edited chain before baking.
- Bake to a new versioned AnimSequence with
bake_control_rig_edit,reduceKeys=false, andonConflict="error". Never overwrite source, another iteration's session, or prior approved output assets.
Validation and visual review
Run analyze_animation on source and output using the same mesh, explicit
frames, and bones. Include root, pelvis, the complete edited chain, feet,
opposite side, and any controls/bones expected to remain unchanged. Write its
native manifest.json and samples.ndjson beneath
Saved/Codex/AnimationQA.
Check numeric integrity, invalid transforms, selected-bone bounds, root displacement/speed, and loop seam metrics. Derive gesture-specific checks from component transforms: shoulder-relative wrist height, elbow-to-wrist vector, elbow angle/plane stability, probed palm-normal alignment, speed/acceleration, direction changes, and drift in untouched bones. Numeric samples are the source of truth; screenshots are the human visual gate.
Use the analyzer's rateScale, effectiveDurationSeconds, and per-notify
rawTriggerTimeSeconds / effectiveTriggerTimeSeconds fields when validating
gameplay release timing. Effective times use the asset-rate magnitude and are
null when the asset rate is zero.
For an exact native frame capture, without Computer Use or Python:
editor(action="open_asset", assetPath=<baked_anim>).editor(action="find_object")forclassName="AnimSingleNodeInstance",nameContains="AnimPreviewInstance",world="any"; select the match under the currentAnimationEditorPreviewActor.- In one
editor(action="invoke_object_functions")call, invokeSetPlayingwithbIsPlaying=false, thenSetPositionwithInPosition=frame*rateDenominator/rateNumeratorandbFireNotifies=falseon that object path. - Open the asset again to focus its window and call
editor(action="capture_screenshot", target="window"). - Capture start, entry, both extrema, exit, and end with a consistent view.
Keep versioned V&V fixtures for a from-scratch gesture, full-body IK authoring, a retarget between known skeletons, a copied animation modified through IK plus its pole target, a bone/socket contact with an unrelated simultaneous edit, and edge cases covering mirrored/negative scale, dense keys, additive-source rejection/flattening, layered sessions, scalar enums, root motion, loops, and short clips.
The loop generalizes beyond humanoid arms. Re-discover the rig mapping, then express legs as hip/knee-pole/foot/contact constraints; spine and head as arc/twist/aim constraints; tails, tentacles, and ropes as length-preserving chain curves with delayed phase; and props or mechanisms as pivot, attachment, contact, and clearance constraints. Only control/bone names, axes/signs, mirrored scale, limits, and motion constraints are rig-specific.
Compatibility and endpoint rule
The four Control Rig session actions, configure_ik_rig,
configure_ik_retargeter, and contact_lock are UE 5.8 only and return
unsupported_engine_version on older engines; do not invent a reflected or
raw-bone fallback. Legacy IK create/read behavior is unchanged.
analyze_animation is cross-version through the native APIs in the compiled
engine. See the public
Native Control Rig Animation
guide for full call shapes and fixture guidance.
Edit ranges are [startFrame, endFrameExclusive). The bridge keeps an internal
support frame for Unreal's exact-duration export sample without making the
exclusive end authorable. Validate the last visible frame and exact-duration
sample separately. A non-looping endpoint must hold the intended final pose
without an adjacent-frame teleport or rotation jump; a looping endpoint must
pass the requested seam check. A large endpoint discontinuity fails the bake.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

