Passes one of two inputs to the output based on a boolean parameter choice.
When to Use
- A/B testing: Quickly compare two different upstream configurations without rewiring connections.
- One control, many choices: Input choice can be driven by a parameter wire, so one control can flip several Switches at once.
How to Use
Connect two different data sources to the two inputs. With Input choice off, the Primary Input passes through; turn it on to pass the Optional input instead.
- Connect two different data sources to the two inputs.
- Toggle the Input choice parameter to select which source should be active.
Inputs
| Port | Type | Required/Optional | Description |
|---|---|---|---|
| Primary Input | Any | Required | The default input data source, used while Input choice is off. |
| Optional input | Any | Optional | The alternate input data source, used while Input choice is on. |
Outputs
| Port | Type | Description |
|---|---|---|
| Primary Output | Any | The selected input data. |
Parameters
Input choice — Boolean toggle that selects which input to pass through. Default: off.
- Off (unchecked) — Passes the Primary Input to the output.
- On (checked) — Passes the Optional input to the output. If nothing is connected to the Optional input, the Switch produces no output.
Tips and Tricks
- The Switch device accepts any data type and will adapt to whatever is connected.
- The two inputs can have different resolutions, but both must be in the same space (both world space or both local space).
- To pick among more than two sources, use the Route Chooser.
Limitations
- Both connected inputs build whenever the Switch builds, even the one that is not selected. To save build time, disconnect or disable the branch you are not using.