unreal.RigUnit_HierarchySetParentWeights

class unreal.RigUnit_HierarchySetParentWeights(execute_context: ControlRigExecuteContext = [], child: RigElementKey = Ellipsis, weights: None = [])

Bases: RigUnit_DynamicHierarchyBaseMutable

Sets the item’s parents’ weights

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 set the parents’ weights for

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

  • weights (Array[RigElementWeight]): [Read-Write] * The weights to set for the child’s parents. * The number of weights needs to match the current number of parents.

property child: RigElementKey

[Read-Write] * The child to set the parents’ weights for

Type:

(RigElementKey)

property weights: None

[Read-Write] * The weights to set for the child’s parents. * The number of weights needs to match the current number of parents.

Type:

(Array[RigElementWeight])