Navigation
API > API/Plugins > API/Plugins/ControlRig > API/Plugins/ControlRig/Rigs > API/Plugins/ControlRig/Rigs/URigHierarchyController
References
| Module | ControlRig |
| Header | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Public/Rigs/RigHierarchyController.h |
| Include | #include "Rigs/RigHierarchyController.h" |
| Source | /Engine/Plugins/Animation/ControlRig/Source/ControlRig/Private/Rigs/RigHierarchyController.cpp |
UFUNCTION (BlueprintCallable, Category=URigHierarchyController)
FRigElementKey AddSocket
(
FName InName,
FRigElementKey InParent,
FTransform InTransform,
bool bTransformInGlobal,
const FLinearColor & InColor,
const FString & InDescription,
bool bSetupUndo,
bool bPrintPythonCommand
)
Remarks
Adds a socket to the hierarchy The key for the newly created bone.
Parameters
| Name | Description |
|---|---|
| InName | The suggested name of the new socket - will eventually be corrected by the namespace |
| InParent | The (optional) parent of the new null. If you don't need a parent, pass FRigElementKey() |
| InTransform | The transform for the new socket - either in local or global space, based on bTransformInGlobal |
| bTransformInGlobal | Set this to true if the Transform passed is expressed in global space, false for local space. |
| InColor | The color of the socket |
| InDescription | The description of the socket |
| bSetupUndo | If set to true the stack will record the change for undo / redo |
| bPrintPythonCommand | If set to true a python command equivalent to this call will be printed out |