batch_retarget_animations
Retarget multiple animation sequences at once using an existing IK Retargeter. Specify source animations and an output folder to export retargeted copies, with an option to skip assets that already exist.
Instructions
Retarget a list of animation sequences using an existing IK Retargeter.
This is the programmatic equivalent of the UE5 editor "Retarget Animations → Export Animations" workflow (Method 1 / quick path).
After setting up the IK Retargeter once (create_ik_retargeter), call this tool to batch-export retargeted copies of all your animations.
Args: retargeter_path: Full content path to the IKRetargeter asset (e.g. "/Game/Animation/Retargeters/RTG_Mannequin_To_MyChar") source_animation_paths: List of animation sequence content paths to retarget (e.g. ["/Game/Animations/Walk", "/Game/Animations/Run"]) output_path: Destination folder for retargeted animations (e.g. "/Game/Characters/MyChar/Animations") output_suffix: Suffix appended to each output asset name (default "_Retargeted") use_existing_if_found: Skip retargeting if the output asset already exists
Returns: dict with keys: success, retargeted (count), skipped (count), failed (count), output (raw UE5 log)
KB: see knowledge_base/05_ANIMATION_SYSTEM.md#overview Example: batch_retarget_animations(retargeter_path="/Game/MCP_Test/Example", source_animation_paths="/Game/MCP_Test/Example", output_path="/Game/MCP_Test/Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | Yes | ||
| output_suffix | No | _Retargeted | |
| retargeter_path | Yes | ||
| use_existing_if_found | No | ||
| source_animation_paths | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |