I don't think there's an easy way via the SDK, but if you can find the
formula for creating a rotation matrix for the axis order you want, then
it's pretty trivial to work backwards from that.
Your idea for using a temporary null isn't a bad one though, since if you
plot the rotation, it'll automatically get rid of any discontinuities for
you (which you'd probably get if you tried calculating it yourself).
Andy
> I need to pass Euler angles values to another software that uses a
> different
> rotation order then the default values from XSI. How can I extract the
> right
> values starting from an SIRotation? If I use a .GetXYZAngles() function,
> it
> returns me the values in the XYZ rotation order but I really need it in
> the
> ZYX rotation order. I guess I could use a temp null and pass it the
> rotation
> then change the rotation order and extract the new values
> (tempnull.rotx.value�) but I was wondering if their is an easier
way to
> convert the data? Anyone�s got a better idea?
>
> Cheers!
>
> Mathieu Leclaire
> R&D Programmer
> Hybride Technologies
>
> "Yesterday is history, tomorrow is a mystery, today is a gift and that is
> why it's called the present"
>
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi