hey guys, im still playing around with matrices. iv created a node to deal with geometry matrices, when the world matrix is plugged into the node it appears perfect in the attribute editor, but when i try to use the eulerRotation of the matrix, the values become completely different.
can anyone explain why this code does not work: inputMatrix=block.inputValue(RigidBody.objWorldMatrix).asMatrix() tMatrix=om.MTransformationMatrix(inputMatrix) temp=tMatrix.eulerRotation() rot=[temp[0],temp[1],temp[2],temp[3],temp[4],temp[5],temp[6],temp[7],temp[8]] from this rot =[1.5707963267949066, -1.5706444258003933, 3.1415926535897931, 3.1415926535897931, 3.1415926535897931, 3.1415926535897931, 3.1415926535897931, 3.1415926535897931, 3.1415926535897931] thanks for any help :) -- http://groups.google.com/group/python_inside_maya
