unreal.RigUnit_SetRotation

class unreal.RigUnit_SetRotation(execute_context: ControlRigExecuteContext = [], item: RigElementKey = Ellipsis, space: BoneGetterSetterMode = Ellipsis, initial: bool = False, value: Quat = Ellipsis, weight: float = 0.0, propagate_to_children: bool = False)

Bases: RigUnitMutable

SetRotation is used to set a single rotation on hierarchy.

C++ Source:

  • Plugin: ControlRig

  • Module: ControlRig

  • File: RigUnit_SetTransform.h

Editor Properties: (see get_editor_property/set_editor_property)

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

  • initial (bool): [Read-Write] Initial: Defines if the transform should be set as current (false) or initial (true). Initial transforms for bones and other elements in the hierarchy represent the reference pose’s value.

  • item (RigElementKey): [Read-Write] Item: The item to set the rotation for

  • propagate_to_children (bool): [Read-Write] Propagate to Children: If set to true children of affected items in the hierarchy will follow the transform change - otherwise only the parent will move.

  • space (BoneGetterSetterMode): [Read-Write] Space: Defines if the rotation should be set in local or global space

  • value (Quat): [Read-Write] Value: The new rotation of the given item

  • weight (float): [Read-Write] Weight: Defines how much the change will be applied

property initial: bool

[Read-Write] Initial: Defines if the transform should be set as current (false) or initial (true). Initial transforms for bones and other elements in the hierarchy represent the reference pose’s value.

Type:

(bool)

property item: RigElementKey

[Read-Write] Item: The item to set the rotation for

Type:

(RigElementKey)

property propagate_to_children: bool

[Read-Write] Propagate to Children: If set to true children of affected items in the hierarchy will follow the transform change - otherwise only the parent will move.

Type:

(bool)

property rotation: Quat

‘rotation’ was renamed to ‘value’.

Type:

deprecated

property space: BoneGetterSetterMode

[Read-Write] Space: Defines if the rotation should be set in local or global space

Type:

(BoneGetterSetterMode)

property value: Quat

[Read-Write] Value: The new rotation of the given item

Type:

(Quat)

property weight: float

[Read-Write] Weight: Defines how much the change will be applied

Type:

(float)