unreal.RigVMFunction_StringTruncate

class unreal.RigVMFunction_StringTruncate(name: str = '', count: int = 0, from_end: bool = False, remainder: str = '', chopped: str = '')

Bases: RigVMFunction_StringBase

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

C++ Source:

  • Module: RigVM

  • File: RigVMFunction_String.h

Editor Properties: (see get_editor_property/set_editor_property)

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

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

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

  • name (str): [Read-Write]

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

property chopped: str

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

Type:

(str)

property count: int

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

Type:

(int32)

property from_end: bool

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

Type:

(bool)

property name: str

[Read-Write]

Type:

(str)

property remainder: str

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

Type:

(str)