After finding that he needed to set a lot of attributes in Maya for routine export of animation to the Unity 3D Engine, Danilo Pinheiro cam up with a simple script to help the task along.

I decided write a simple Python script in order to help export animations from Maya to Unity3

Called pdUnityExport, the freely available script (which is written in Python) will save a new scene to “_bake”, then import references, back all the joint animation in the Maya timeline, set the scale attributes, and then delete any unnecessary nodes while keeping the hierarchy and finally export the efforts as an FBX file. Check out the pdUnityExport script for Maya to export Maya animation to Unity here.