It seems I have a knack for figuring out the stupid things I'm doing right *after* posting a question. I didn't realize this was expecting radians - doh!
On May 3, 10:39 am, John Patrick <[email protected]> wrote: > Hey All, > > I'm trying to get a new set of Euler angles for an object whose rotation > order is changing. I thought an easy way to do this was with an MEulerAngle > object, but I'm not getting the results I'd expect. For instance: > > r = OM.MEulerRotation(20, 30, 40, 0) > > r.reorderIt(OM.MEulerRotation.kYZX) > > print ('x: %.2f, y: %.2f, z:%.2f' % (r.x, r.y, r.z)) > > # prints x: 2.99, y: 1.68, z:-0.30 > > My expectation was that I'd get a new set of Euler angles that will preserve > the object's orientation if the object is using the new rotation order. Is > this not what this is supposed to do? Can anyone shed some light on a > better way to accomplish this? > > Many thanks! > > -JP > > -- > John Patrick > 404-242-2675 > [email protected]http://www.canyourigit.com -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe
