unreal.RigUnit_MathFloatSelectBool

class unreal.RigUnit_MathFloatSelectBool(condition: bool = False, if_true: float = 0.0, if_false: float = 0.0, result: float = 0.0)

Bases: RigUnit_MathFloatBase

Return one of the two values based on the condition

C++ Source:

  • Plugin: ControlRig

  • Module: ControlRig

  • File: RigUnit_MathFloat.h

Editor Properties: (see get_editor_property/set_editor_property)

  • condition (bool): [Read-Write] Condition

  • if_false (float): [Read-Write] If False

  • if_true (float): [Read-Write] If True

  • result (float): [Read-Write] Result

property condition: bool

[Read-Write] Condition

Type:

(bool)

property if_false: float

[Read-Write] If False

Type:

(float)

property if_true: float

[Read-Write] If True

Type:

(float)

property result: float

[Read-Only] Result

Type:

(float)