unreal.RigUnit_NameTruncate

class unreal.RigUnit_NameTruncate(name: Name = 'None', count: int = 0, from_end: bool = False, remainder: Name = 'None', chopped: Name = 'None')

Bases: RigUnit_NameBase

Returns the left or right most characters from the string chopping the given number of characters from the start or the end

C++ Source:

  • Plugin: ControlRig

  • Module: ControlRig

  • File: RigUnit_Name.h

Editor Properties: (see get_editor_property/set_editor_property)

  • chopped (Name): [Read-Write] Chopped: the part of the name that has been chopped off

  • count (int32): [Read-Write] Count: Number of characters to remove from left or right

  • from_end (bool): [Read-Write] From End: if set to true the characters will be removed from the end

  • name (Name): [Read-Write] Name

  • remainder (Name): [Read-Write] Remainder: the part of the string without the chopped characters

property chopped: Name

[Read-Only] Chopped: the part of the name that has been chopped off

Type:

(Name)

property count: int

[Read-Write] Count: Number of characters to remove from left or right

Type:

(int32)

property from_end: bool

[Read-Write] From End: if set to true the characters will be removed from the end

Type:

(bool)

property name: Name

[Read-Write] Name

Type:

(Name)

property remainder: Name

[Read-Only] Remainder: the part of the string without the chopped characters

Type:

(Name)