Hi gogeta, thanks for following up.
With regard to what suggested by @s_bach I confirm it's actually working without any hassle in the code snippet below.
{
if (!doc)
return maxon::IllegalArgumentError(MAXON_SOURCE_LOCATION);
BaseObject* activeObj = doc->GetActiveObject();
if (!activeObj || !activeObj->IsInstanceOf(Ocamera))
{
DiagnosticOutput("No camera selected");
return maxon::OK;
}
ROTATIONORDER rotOrder = activeObj->GetRotationOrder();
DiagnosticOutput("current camera rotation order: @", rotOrder);
activeObj->SetRotationOrder(ROTATIONORDER::XYZGLOBAL);
EventAdd();
rotOrder = activeObj->GetRotationOrder();
DiagnosticOutput("new camera rotation order: @", rotOrder);
return maxon::OK;
}
With regard to your case, would also great if you could better elaborate:
I am trying to rotate the camera order inside User Area functions.
Last but not least, it would be very handy to check the code you're using or at least to discuss the design you're implementing to better understand what's wrong. If you don't feel safe to share here consider to send an email to [email protected].
Cheers, Riccardo