Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Rigs > API/Plugins/ControlRig/Rigs/URigHierarchy > API/Plugins/ControlRig/Rigs/URigHierarchy/SetControlPreferredEulerAngles
References
| Module | ControlRig |
| Header | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Rigs/RigHierarchy.h |
| Include | #include "Rigs/RigHierarchy.h" |
void SetControlPreferredEulerAngles
&40;
FRigControlElement &42; InControlElement,
const FVector & InEulerAngles,
EEulerRotationOrder InRotationOrder,
bool bInitial,
bool bFixEulerFlips
&41;
Remarks
Sets a control's preferred euler angles (local transform rotation)
Parameters
| Name | Description |
|---|---|
| InControlElement | The element to look up |
| InEulerAngles | The new preferred euler angles to set |
| InRotationOrder | The rotation order to use when setting the euler angles |
| bInitial | If true we'll return the preferred euler angles for the initial - otherwise current transform |
| bFixEulerFlips | If true the new euler angles value will use the shortest path |