Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Rigs > API/Plugins/ControlRig/Rigs/URigHierarchy > API/Plugins/ControlRig/Rigs/URigHierarchy/SetControlOffsetTransform
References
| Module | ControlRig |
| Header | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Rigs/RigHierarchy.h |
| Include | #include "Rigs/RigHierarchy.h" |
| Source | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Private/Rigs/RigHierarchy.cpp |
void SetControlOffsetTransform
(
FRigControlElement * InControlElement,
const FTransform & InTransform,
const ERigTransformType::Type InTransformType,
bool bAffectChildren,
bool bSetupUndo,
bool bForce,
bool bPrintPythonCommands
)
Remarks
Sets the offset transform for a given control element
Parameters
| Name | Description |
|---|---|
| InControlElement | The element to set the transform for |
| InTransform | The offset transform to set |
| InTransformType | The type of transform to set. Note: for offset transform, setting the initial value also updates the current value |
| bAffectChildren | If set to false children will not move (maintain global). |
| bSetupUndo | If true the transform stack will be setup for undo / redo |
| bForce | Set the transform even if it is the same as the previously set one |