/animClip

Save animation to JSON and load it.

Primary LanguageC++

Basics

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.

Installation

Compile with Visual Studio and CMake.

Usage

Two commands are available in Maya when the plugin is loaded: saveAnimClip and loadAnimClip.

Save animation.

  1. Select controls (transforms).
  2. Select range in time line.
    If no range selected then just a pose will be saved.
  3. Run saveAnimClip -f "c:/clip.json"
    This saves animation into the file.

Load animation.

  1. Select controls you want to load an animation to.
  2. 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.