How to retrieve the axis order of an euler controller (EULER_CONTROL_CLASSID)

How to retrieve the axis order of an euler controller (EULER_CONTROL_CLASSID)

Anonymous
Not applicable
394 Views
2 Replies
Message 1 of 3

How to retrieve the axis order of an euler controller (EULER_CONTROL_CLASSID)

Anonymous
Not applicable
I am attempting to retrieve the "ordering" information from a Euler controller (EULER_CONTROL_CLASS_ID).

I read in several places that I should use the Control::GetLocalTMComponents() but I tried calling the method on the controller and on its parent (the PRS controller). In both cases the rotRep component of the TMComponentsArg struct was kUnknown.

Thanks in advance!
0 Likes
395 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
I discovered that I can do

IEulerControl* pEulerControl = reinterpret_cast<IEulerControl*>( pRotationController->GetInterface(I_EULERCTRL) );

IEulerControl has the method GetOrder() and returns the order of the xyz eulers as defined in euler.h

But I always get zero no mater what!

Any Idea? 🙂
0 Likes
Message 3 of 3

Anonymous
Not applicable
Well, GetOrder() seems to work! :).

The problem was my first tests were with static objects without keys in the rotation controller.
Thanks!
0 Likes