ForEachLoop
main mel draw photography about

ForEachLoop

 


 

Animation and Pose Copy Tool…with a batch transfer

Mel Scripting February 10th, 2008

anm copyThe “Animation Copy” allow Maya users (tested in Maya 7) to record the pose, or animation in a text file that stored in a directory the users have picked; the directory the users picked will be recorded down(in anmPose_userPrefs.mel) so users don’t have to go in to pick the directory again next time they start the tool. You could also type the directory path in the directory textfield and press “Enter” on the numpad to save the directory info. Pose and Animation keys are stored in .pose and .anm respectively to distinguish the format, users can open the file with notepad and edit the key datas as they want.
The script is copying and pasting the animation keys based on the name of the nodes,
so identical node names are required to get the keys transfered/copied over.

The second function in this toolset is the “Animation Transfer”, it works differently from the above mentioned. This script can do a batch transfer of animation keys to a different character that have the same node names.

<<–Known bugs–>>
1) When the users’ Maya scene has same node names, which create pipe like xyx|abc resulting in error.
While this is not an actual bug bcos you are not supposed to have duplicated names, here is the solution:Find the duplicated node names and rename them uniquely. Or use my renameDuplicate mel script.
2) When the maya scene contain myterious nodes like “unknown”. delete the “unknown” node would fix the problem.
You can use the script to fix the problem–> delete `ls -type “unknown”`;

Run “my_AnmCopyWindowProc” after you source the scritps.
Download the mel script ——–> Animation Copy script

Leave a Reply