/animation_retargeting_tool

Animation retargeting tool for Autodesk Maya. Retargets mocap to a custom rig with a few clicks.

Primary LanguagePython

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:

  1. Add animation_retargeting_tool.py to your Maya scripts folder (Username\Documents\maya\scripts).
  2. 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:

  1. Make sure that you have a rig and skeleton with connections.
  2. Save the scene as a ma. file. This file will store all the connection nodes.

How to load rig connections:

  1. Open the ma. file where you saved your connections.
  2. Click refresh to load the connection nodes into the list.

How to load a new animation clip to the connected rig:

  1. Open the ma. file where you saved your connections.
  2. In the top menu of Maya click 'File' > 'Import...' and select a fbx. with animation or mocap.
  3. 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.