unreal.RigUnit_SetBoneTranslation

class unreal.RigUnit_SetBoneTranslation(execute_context: ControlRigExecuteContext = [], bone: Name = 'None', translation: Vector = Ellipsis, space: RigVMTransformSpace = Ellipsis, weight: float = 0.0, propagate_to_children: bool = False)

Bases: RigUnitMutable

SetBoneTranslation is used to perform a change in the hierarchy by setting a single bone’s Translation.

C++ Source:

  • Plugin: ControlRig

  • Module: ControlRig

  • File: RigUnit_SetBoneTranslation.h

Editor Properties: (see get_editor_property/set_editor_property)

  • bone (Name): [Read-Write] The name of the Bone to set the Translation for.

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

  • propagate_to_children (bool): [Read-Only] If set to true all of the global transforms of the children of this bone will be recalculated based on their local transforms. Note: This is computationally more expensive than turning it off.

  • space (RigVMTransformSpace): [Read-Write] Defines if the bone’s Translation should be set in local or global space.

  • translation (Vector): [Read-Write] The Translation value to set for the given Bone.

  • weight (float): [Read-Write] The weight of the change - how much the change should be applied

property bone: Name

[Read-Write] The name of the Bone to set the Translation for.

Type:

(Name)

property propagate_to_children: bool

[Read-Only] If set to true all of the global transforms of the children of this bone will be recalculated based on their local transforms. Note: This is computationally more expensive than turning it off.

Type:

(bool)

property space: RigVMTransformSpace

[Read-Write] Defines if the bone’s Translation should be set in local or global space.

Type:

(RigVMTransformSpace)

property translation: Vector

[Read-Write] The Translation value to set for the given Bone.

Type:

(Vector)

property weight: float

[Read-Write] The weight of the change - how much the change should be applied

Type:

(float)