On this page

Pass on the value of one of five input streams, according to the value of a selector parameter. Switch nodes can be of output type float, colorN or vectorN, and have five inputs, in1 through in5 (not all of which must be connected), which must match the output type.

Parameters

in1

The values or nodenames to select from based on the value of the which input. The default value is 0.0 in all channels.

in2

The values or nodenames to select from based on the value of the which input. The default value is 0.0 in all channels.

in3

The values or nodenames to select from based on the value of the which input. The default value is 0.0 in all channels.

in4

The values or nodenames to select from based on the value of the which input. The default value is 0.0 in all channels.

in5

The values or nodenames to select from based on the value of the which input. The default value is 0.0 in all channels.

which

A selector to choose which input to take values from; the output comes from input 'floor(which)+1', clamped to the 1-5 range. So which<1 will pass on the value from in1, 1<=which<2 will pass the value from in2, 2<=which<3 will pass the value from in3, and so on up to 9<=which will pass the value from in10. The default value of which is 0.

Outputs

out

float

VOP nodes