unreal.RigVMFunction_MathBoolToFloat

class unreal.RigVMFunction_MathBoolToFloat(value: bool = False, result: float = 0.0)

Bases: RigVMFunction_MathBoolBase

Turns the given bool into a float value

C++ Source:

  • Plugin: RigVM

  • Module: RigVM

  • File: RigVMFunction_MathBool.h

Editor Properties: (see get_editor_property/set_editor_property)

  • result (float): [Read-Write] The resulting float number (0 or 1)

  • value (bool): [Read-Write] The bool value to convert

property result: float

[Read-Only] The resulting float number (0 or 1)

Type:

(float)

property value: bool

[Read-Write] The bool value to convert

Type:

(bool)