Vae Multi-Switch
Five VAE slots, first one that's alive wins
- input1
- input2
- input3
- input4
- input5
- vae
The two-way Vae Switch needs a widget telling it which input to use. This one throws the widget away. The Vae Multi-Switch takes up to five VAE inputs and returns the first one that isn't None - that's the entire algorithm, and it's why the README calls these "options menu" switches.
That means you don't flip a control to choose a VAE. You choose by bypassing inputs. Wire candidate VAEs into the slots, and whichever slot is still connected (not bypassed, not muted, not empty) wins. The classic setup the README spells out: put the VAE loaders that can be bypassed in the early slots, and the always-on default in the last slot. Why last? Because the search starts at input1, and an always-enabled VAE wired into slot 1 is never None - it would win every time and all the slots after it would be ignored. Bypassable options first, permanent default last, and you've got a picker.
Concrete example: input1 is your SDXL VAE from a bypassable loader, input2 is a fine-tuned VAE you sometimes want, input3 is the stock fallback that's never bypassed. Bypass 1 and 2, and you silently get input3. Unbypass 2, and it wins over 3. No cables moved.
The inputs are all VAE sockets (input1–input5), forced input, and the output is a single vae. The output goes straight into a VAEDecode. One real behavior to know: if every slot is None, the node raises Missing Input: Multi VAE Switch has no active Input and the queue stops with an error. It won't quietly pass nothing - it fails loudly. So always leave at least one slot permanently wired.
Installing it
Comes with ComfyUI-RvTools_v2 - install the pack once: ComfyUI Manager → search ComfyUI-RvTools_v2, or:
cd ComfyUI/custom_nodes
git clone https://github.com/r-vage/ComfyUI-RvTools_v2
Restart after. No models, no keys; dependencies (torch, numpy, Pillow, opencv-python, pilgram) are already in a standard ComfyUI env.
The pack is unmaintained - the README points at ComfyUI_Eclipse as the successor. The [RvTools] suffix is from v2's rename pass (v1's repo was pulled at one point, which broke a lot of workflows and Manager's node display), not random branding.
Common issues
- "Missing Input" error. All five slots empty or all bypassed. Keep a default wired into the last slot and you'll never hit it.
- The always-on slot wins everything. If you put a permanently enabled VAE in slot 1 and wonder why slots 2–5 never get picked, that's the first-non-None rule working as designed. Move the default last.
- Bypass vs. mute. Bypass removes the input from contention; mute also does, but it's the wrong tool here and easy to confuse yourself with later.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| input1opt | VAE | — | |
| input2opt | VAE | — | |
| input3opt | VAE | — | |
| input4opt | VAE | — | |
| input5opt | VAE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| vae | VAE | — |