To Float
Convert the given input to 32-bit floating-point. Array and tuple inputs are converted element-wise to arrays and tuples of the same shape.
Installation
To use this node enable omni.graph.nodes in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
role (inputs:role) |
|
The attribute role to apply to the output type. If the role is not supported by the output shape, a role of None is used. |
None |
Metadata |
literalOnly = 1 |
||
Metadata |
allowedTokens = None,Color,Normal,Point,Quaternion,TexCoord,Vector |
||
Value (inputs:value) |
|
The numeric or boolean value to convert. |
None |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Float (outputs:converted) |
|
The value converted to float form with the role applied. |
None |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.ToFloat |
Version |
1 |
Extension |
omni.graph.nodes |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
To Float |
Categories |
math:conversion |
Generated Class Name |
OgnToFloatDatabase |
Python Module |
omni.graph.nodes |