Hi All,
I’m currently attempting to create a Maya Python script that takes animation data from one rig (keyframes, translation, rotation, scale) and transfer that data to another mesh with the same rig.
How I am attempting:
- Being able to save a file of current animation data using xml module for python within maya.
- Being able to open that xml file with the same script in a different scene and appy that data to the new mesh on a similar rigg.
Instead of trying to format the information myself, I decided to use xml based on this tutorial (http://eat3d.com/free/maya_python) which led me to this module (xml.dom.minidom — Minimal DOM implementation — Python 3.12.6 documentation).
Is there an easier way to do this? Does anybody recommend using a different module or data transfer language over XML?
I’m trying to get more comfortable with Python in Maya by building this script and I’m struggling with trying to apply the data to my models. I haven’t figured out a system yet. Just trying to get some more thought on the subject, it’s new to me and I’m struggling a little bit so any comments/suggestions are welcome.