unreal.RigUnit_ProjectTransformToNewParent

class unreal.RigUnit_ProjectTransformToNewParent(child: RigElementKey = Ellipsis, child_initial: bool = False, old_parent: RigElementKey = Ellipsis, old_parent_initial: bool = False, new_parent: RigElementKey = Ellipsis, new_parent_initial: bool = False, transform: Transform = Ellipsis)

Bases: RigUnit

Gets the relative offset between the child and the old parent, then multiplies by new parent’s transform.

C++ Source:

  • Plugin: ControlRig

  • Module: ControlRig

  • File: RigUnit_ProjectTransformToNewParent.h

Editor Properties: (see get_editor_property/set_editor_property)

  • child (RigElementKey): [Read-Write] The element to project between parents

  • child_initial (bool): [Read-Write] If set to true the child will be retrieved in its initial transform

  • new_parent (RigElementKey): [Read-Write] The new parent of the child.

  • new_parent_initial (bool): [Read-Write] If set to true the new parent will be retrieved in its initial transform

  • old_parent (RigElementKey): [Read-Write] The original parent of the child. Can be an actual parent in the hierarchy or any other item you want to use to compute to offset against.

  • old_parent_initial (bool): [Read-Write] If set to true the old parent will be retrieved in its initial transform

  • transform (Transform): [Read-Write] The resulting transform

property child: RigElementKey

[Read-Write] The element to project between parents

Type:

(RigElementKey)

property child_initial: bool

[Read-Write] If set to true the child will be retrieved in its initial transform

Type:

(bool)

property new_parent: RigElementKey

[Read-Write] The new parent of the child.

Type:

(RigElementKey)

property new_parent_initial: bool

[Read-Write] If set to true the new parent will be retrieved in its initial transform

Type:

(bool)

property old_parent: RigElementKey

[Read-Write] The original parent of the child. Can be an actual parent in the hierarchy or any other item you want to use to compute to offset against.

Type:

(RigElementKey)

property old_parent_initial: bool

[Read-Write] If set to true the old parent will be retrieved in its initial transform

Type:

(bool)

property transform: Transform

[Read-Only] The resulting transform

Type:

(Transform)