unreal.RigUnit_AddParent

class unreal.RigUnit_AddParent(execute_pin: RigVMExecutePin = [], child: RigElementKey = Ellipsis, parent: RigElementKey = Ellipsis, display_label: Name = 'None')

Bases: RigUnit_DynamicHierarchyBaseMutable

Adds a new parent to an element. The weight for the new parent will be 0.0. You can use the SetParentWeights node to change the parent weights later.

If you just want to add a space to a control you can use the ‘Add Spaces’ node.

C++ Source:

  • Plugin: ControlRig

  • Module: ControlRig

  • File: RigUnit_DynamicHierarchy.h

Editor Properties: (see get_editor_property/set_editor_property)

  • child (RigElementKey): [Read-Write] * The child to be parented under the new parent

  • display_label (Name): [Read-Write] * The optional display label for the parent constraint / space

  • execute_pin (RigVMExecutePin): [Read-Write] * This property is used to chain multiple mutable units together

  • parent (RigElementKey): [Read-Write] * The new parent to be added to the child

property child: RigElementKey

[Read-Write] * The child to be parented under the new parent

Type:

(RigElementKey)

property display_label: Name

[Read-Write] * The optional display label for the parent constraint / space

Type:

(Name)

property parent: RigElementKey

[Read-Write] * The new parent to be added to the child

Type:

(RigElementKey)