Hi,
I am quite new to Maya scripting and I am working on a plugin to import an animation file.
The file is formatted in JSON and is to animate a simple character.
Each frame contains the absolute world space coordinates (x, y, z) for each body part and its rotation as a quaternion (x,y,z,w).
I am having a couple of problems:
The first is that whenever I take the coords from the file and apply them to the body part it is always offset and never at the world space position relative to the origin (0,0,0). Is there a way to move an object to a specific world space coordinate without if being affected by any history or previous transforms?
The second question is "are there any REALLY simple examples of converting a quaternion to a Euler rotation? " I don't really want to get bogged down in any involved math. Just knowing the input and the desired output is there an example of a python implementation that covers the process.
Sorry if any of this is vague or confused I am quite new to this side of things and need a few pointers.
Many thanks