Animation Retargeting Tool for Maya
A tool for transferring animation data between rigs or transfer raw mocap from a skeleton to a custom rig. (The script is compatible with Autodesk: Maya 2017 or later.)
Installation:
- Add animation_retargeting_tool.py to your Maya scripts folder (Username\Documents\maya\scripts).
- To start the tool within Maya, run these these lines of code from the Maya script editor or add them to a shelf button:
import animation_retargeting_tool
animation_retargeting_tool.start()
How to use:
- To create a connection select the joint with animation data and then select the controller it should drive and click 'Create Connection'.
- 'Create IK Connection' will create a separate rotation and translation controller which will help transfer the transform values from the joint to the rig controller more accurately.
- When you have created a connection for all the essential controllers of the rig you can click 'Bake Animation' to bake the animation from the skeleton to the rig and delete the connections.
How to save rig connections:
- Make sure that you have a rig and skeleton with connections.
- Save the scene as a ma. file. This file will store all the connection nodes.
How to load rig connections:
- Open the ma. file where you saved your connections.
- Click refresh to load the connection nodes into the list.
How to load a new animation clip to the connected rig:
- Open the ma. file where you saved your connections.
- In the top menu of Maya click 'File' > 'Import...' and select a fbx. with animation or mocap.
- The animation will be loaded on the skeleton without affecting the rig connections.
Known bugs:
- The bake animation command is a bit slow.
The script is not compatible with Maya 2022 at the moment.