Using these two scripts in collaboration you will be able to import Maya animation to Unity.This script was designed and tested for Maya nCloth simulation and now supports all Maya animations as long as the vertex count does not change.
It is very easy to use and in a few minutes you will have your animation playing on Unity.
Now you can also control your animation:
1. public bool GetSetPlayOrPause - Returns if animation is currently playing or not, or you can play or pause.
2. public int GetSetFrame - Return at what frame the animation is currently at, or Chose which farme to jump to.
3. public int StartAtFrame - Start at a specific Frame even when looping, or returns the set starting Frame.
4. public int StopAtFrame - Stop at a specific Frame, or returns the set stop frame.
5. public void ResetStartFrame() - Resets starting frame position to its original setting.
6. public void ResetStopFrame() - Reset stop frame to its original setting.
7. public float GetSetFPS - Change fps on the fly.
8. public bool GetSetIsLoop - Returns if the animation is in loop or not, or set if it should loop.
9. public int GetSetLoopDelay - Get the amount of frames to wait or set the amount of frames to wait before looping.