Houdini 21.0 Nodes APEX nodes

TwoWaySwitch<T>

Switches between two inputs based on a Bool value.

On this page
Since 20.0

Returns b if index is True. Otherwise returns a.

Inputs

a: AnimChannel, AnimChannelCollection, AnimStack, ApexGraphHandle, ApexNodeID, ApexNodeIDArray, ApexPortID, ApexPortIDArray, Bool, BoolArray, ColorRamp, DataItem, Dict, DictArray, DynamicPath, DynamicPathArray, FBIKSkeleton, FBIKSkeletonArray, FBIKSolver, FBIKSolverArray, FBIKTarget, FBIKTargetArray, Float, FloatArray, FloatRamp, Geometry, GeometryArray, Int, IntArray, Matrix3, Matrix3Array, Matrix4, Matrix4Array, SimRootDataId, SimRootDataIdArray, String, StringArray, Vector2, Vector2Array, Vector3, Vector3Array, Vector4, Vector4Array

The first value.

b: AnimChannel, AnimChannelCollection, AnimStack, ApexGraphHandle, ApexNodeID, ApexNodeIDArray, ApexPortID, ApexPortIDArray, Bool, BoolArray, ColorRamp, DataItem, Dict, DictArray, DynamicPath, DynamicPathArray, FBIKSkeleton, FBIKSkeletonArray, FBIKSolver, FBIKSolverArray, FBIKTarget, FBIKTargetArray, Float, FloatArray, FloatRamp, Geometry, GeometryArray, Int, IntArray, Matrix3, Matrix3Array, Matrix4, Matrix4Array, SimRootDataId, SimRootDataIdArray, String, StringArray, Vector2, Vector2Array, Vector3, Vector3Array, Vector4, Vector4Array

The second value.

index: Bool

The value that controls the switch.

Outputs

out: AnimChannel, AnimChannelCollection, AnimStack, ApexGraphHandle, ApexNodeID, ApexNodeIDArray, ApexPortID, ApexPortIDArray, Bool, BoolArray, ColorRamp, DataItem, Dict, DictArray, DynamicPath, DynamicPathArray, FBIKSkeleton, FBIKSkeletonArray, FBIKSolver, FBIKSolverArray, FBIKTarget, FBIKTargetArray, Float, FloatArray, FloatRamp, Geometry, GeometryArray, Int, IntArray, Matrix3, Matrix3Array, Matrix4, Matrix4Array, SimRootDataId, SimRootDataIdArray, String, StringArray, Vector2, Vector2Array, Vector3, Vector3Array, Vector4, Vector4Array

Returns b if index is True. Otherwise returns a.

See also

APEX nodes