OmniGraph Node omni.graph.nodes.SelectIf

omni.graph.nodes.SelectIf Properties

Name

Value

Version

1

Extension

omni.graph.nodes

Icon

ogn/icons/omni.graph.nodes.SelectIf.svg

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

uiName

Select If

__categories

flowControl

Generated Class Name

OgnSelectIfDatabase

Python Module

omni.graph.nodes

omni.graph.nodes.SelectIf Description

Selects an output from the given inputs based on a boolean condition. If the condition is an array, and the inputs are arrays of equal length, and values will be selected from ifTrue, ifFalse depending on the bool at the same index. If one input is an array and the other is a scaler of the same base type, the scaler will be extended to the length of the other input.

omni.graph.nodes.SelectIf Inputs

Name

Type

Default

Required?

Descripton

inputs:condition

[‘bool’, ‘bool[]’]

None

Y

The selection variable

inputs:ifFalse

any

None

Y

Value if condition is False

uiName

If False

inputs:ifTrue

any

None

Y

Value if condition is True

uiName

If True

omni.graph.nodes.SelectIf Outputs

Name

Type

Default

Required?

Descripton

outputs:result

any

None

Y

The selected value from ifTrue and ifFalse

uiName

Result