Re: Rotation order from SIRotation

Date : Fri, 28 Mar 2008 16:43:54 -0000 (GMT)
To : XSI(at)Softimage.COM
From : "Andy Nicholas" <andy(at)andynicholas.com>
Subject : Re: Rotation order from SIRotation
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&#65533;) but I was wondering if their is an easier
way to
> convert the data? Anyone&#65533;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


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.