Allows you to pick a specific Input or Output to control the flow of execution
and transmit data variably based on your selections.
Selection_In determines what Input slot will be transmitted and Selection_Out
specifies what slot that data will be output to. All other Outputs from this
node that are not used will return None. This node supports Lazy evaluation.
Only the Inputs that are required based on the selections will be executed.
Depending on the mode this node is set to, different actions will occur:
• SWITCH: Transmits the Input chosen by Selection_In on the Output of Selection_Out.
• CYCLE: Similar to SWITCH but all subsequent Outputs will be matched linearly
after the chosen Input, wrapping around until all Inputs are matched.
• PASSTHROUGH: All Inputs will be directly matched to all Outputs.
(Selection_in and Selection_Out are ignored).
• SORT: All Inputs will be sorted and matched to all Outputs.
(Selection_in and Selection_Out are ignored).
• REVERSE: All Inputs will be inversely matched to all Outputs.
(Selection_in and Selection_Out are ignored).
If Selection_In is set to 0 (for Modes that support it), the first Input that isn't
None will be selected. Similarly, Selection_Out will pick the first Output slot
that has a valid connection.
With Selection_In set to -1, all Inputs will be packed into a List and output
through the slot specified by Selection_Out. With Selection_Out set to -1,
the Input chosen by Selection_In will be sent to ALL Outputs simultaneously.
A Selection_In of -1 and a Selection_Out of -1 will match ALL Input Nodes and
ALL Output nodes respectively. With both values set to -1, this is equivalent
to PASSTHROUGH mode.
If Validate_Typing is enabled, Outputs will match the type of their respective Inputs. (Currently this functionality is unimplemented).
HOVER OVER THE INPUTS AND OUTPUTS FOR MORE INFO.
By VykosX·Created 2 years ago·Updated 2 years ago· 147
💠 Universal Switch
input1
input2
input3
input4
input5
input6
*
*
*
*
*
*
◄mode▾►
◄selection_in1►
◄selection_out1►
◄validate_typing—►
Category🐺 VykosX-ControlFlowUtils
Inputs (10)
Name
Type
Default
Description
input1
*
Data to forward through the Universal Switch
mode
COMBO
Mode that will be used to select Inputs and Outputs
selection_in
INT
1-1–6
Which Input slot to select from (0=Auto,-1=All)
selection_out
INT
1-1–6
Which Output slot to transmit to (0=Auto,-1=All)
validate_typing
BOOLEAN
[UNIMPLEMENTED] Match Input types to their relative Outputs