AnimClip is a plugin for Maya that helps to work with animation data. Clips can be either animation curves or snapshot of attribute values (static pose clips). Data is stored in json format.
Compile with Visual Studio and CMake.
Two commands are available in Maya when the plugin is loaded: saveAnimClip
and loadAnimClip
.
- Select controls (transforms).
- Select range in time line.
If no range selected then just a pose will be saved. - Run
saveAnimClip -f "c:/clip.json"
This saves animation into the file.
- Select controls you want to load an animation to.
- Run
loadAnimClip -f "c:/clip.json"
This restores animation from the file and applies it to controls from the current frame.
You can execute help saveAnimClip
or help loadAnimClip
to see the additional flags.
Rotation order is always saved and restored. Namespaces are supported, of course.