setup_full_retargeting_pipeline
Create IK Rigs for source and target skeletal meshes, build an IK Retargeter, and optionally retarget animations to handle mismatched bone structures.
Instructions
One-shot pipeline: create IK Rigs for source + target, create IK Retargeter, and optionally batch-retarget a list of animations.
This matches Method 2 (Manual IK Retargeting) described in the UE5 docs:
Create IK Rig for source skeleton (auto-generate chains)
Create IK Rig for target skeleton (auto-generate chains)
Create IK Retargeter (source → target, auto-map chains + auto-align)
Export retargeted animations
If all your characters share an identical skeleton (same bone names and hierarchy) you can skip this and use the quick-retarget workflow in the editor; but this pipeline handles mis-matched bone structures.
Args: source_skeletal_mesh: Content path to source Skeletal Mesh (e.g. "/Game/Characters/Mannequin/SK_Mannequin") target_skeletal_mesh: Content path to target Skeletal Mesh (e.g. "/Game/Dantooine/Art/Characters/Player/SK_Player") source_ik_rig_name: Name for source IK Rig asset (e.g. "IKR_Mannequin") target_ik_rig_name: Name for target IK Rig asset (e.g. "IKR_Player") retargeter_name: Name for IK Retargeter asset (e.g. "RTG_Mannequin_To_Player") ik_rig_path: Folder for IK Rig assets retargeter_path: Folder for IK Retargeter asset animations_to_retarget: Optional list of animation content paths to retarget immediately after setup output_animation_path: Output folder for retargeted animations
Returns: dict with keys: success, steps (dict of per-step results), message
KB: see knowledge_base/05_ANIMATION_SYSTEM.md#overview Example: setup_full_retargeting_pipeline(source_skeletal_mesh="Example", target_skeletal_mesh="Example", source_ik_rig_name="ExampleName", target_ik_rig_name="ExampleName", retargeter_name="ExampleName")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ik_rig_path | No | /Game/Animation/IKRigs | |
| retargeter_name | Yes | ||
| retargeter_path | No | /Game/Animation/Retargeters | |
| source_ik_rig_name | Yes | ||
| target_ik_rig_name | Yes | ||
| source_skeletal_mesh | Yes | ||
| target_skeletal_mesh | Yes | ||
| output_animation_path | No | /Game/Animation/Retargeted | |
| animations_to_retarget | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |