I'd like to add up all the child rotations of a hierarchy (with different rotation orders) and output them to the euler rotations of one node with a scripted python plugin.
It would be similar to decomposing a world matrix, however it would take account of rotations over 180 degrees and different rotation orders thereby giving a correct value for the total rotation of a child rather than just a pointless world space orientation. I can't find the source code in the devkit for the decomposeMatrix plugin (unsupported?) but I did find: 'Find Euler rotation values of Maya matrix' http://www.akeric.com/blog/?p=1067 http://download.autodesk.com/us/maya/2010help/API/build_rotation_node_8cpp-example.html#_a11 I'm currently looping through a dag path and incrementally adding rotations with the xform command in an expression http://download.autodesk.com/us/maya/2011help/CommandsPython/xform.html Could someone please demonstrate, in scripted plugin code, how to add rotations together that have different rotation orders like the xform command does? Thanks! -- http://groups.google.com/group/python_inside_maya
