Nodes/ComfyUI-RvTools_v2/Model Multi-Switch
ComfyUI Node

Model Multi-Switch

Five model slots, one output, first one that's there wins

By r-vage·Created about a year ago·Updated 5 months ago· 23
Model Multi-Switch
  • input1
  • input2
  • input3
  • input4
  • input5
  • model

Model Multi-Switch [RvTools] is a MODEL router with five input slots and one output. Instead of a manual selector, it just returns the first connected input that isn't None. Wire up a few candidate models, bypass the ones you don't want, and whatever's alive wins - no widget to set, nothing to forget.

Why you'd reach for it

This is the README's flagship use case: you have different pipelines that each produce a model - the checkpoint loader's model, a Flux dual-CLIP setup, an SD3 triple-CLIP loader, a LoRA-stacked variant. You want to switch between them from an options menu or by bypassing groups, and you don't want to remember to flip a switch in three places. The multi-switch solves it by letting the bypass state itself be the selection: bypass a group and its model disappears, so the router quietly falls through to the next one.

The author's ordering advice is the one thing to actually follow: connect the nodes that can be bypassed to the early slots, and put the always-on checkpoint loader model in the last slot. If an always-enabled node sits in slot 1, it's never None, so slots 2–5 are dead weight. Slot order is your priority list.

How it works

The execute method walks input1 through input5 and returns the first non-None. If all five are None - every candidate bypassed - it raises ValueError("Missing Input: Multi Model Switch has no active Input."), which surfaces as a red node. That error is deliberate: silent None would flow downstream and produce a confusing sampler failure, so the node yells instead.

Inputs: input1–input5, all MODEL, all optional, forced to be wire-only (no widgets).

Output: model - the winning MODEL.

Install

Standard RvTools install:

  • ComfyUI Manager → search "RvTools" → install ComfyUI-RvTools_v2 → restart.
  • Or: cd ComfyUI/custom_nodes && git clone https://github.com/r-vage/ComfyUI-RvTools_v2, then restart.

No models or downloads beyond the pack's own deps (OpenCV, pilgram, installed for other nodes).

Gotchas

The "first non-None wins" logic is easy to misread as "first input that has a wire." It isn't - a bypassed upstream node produces None, and the router skips it, which is exactly the intended behavior. So if your graph unexpectedly always picks slot 1, check whether that slot's upstream is actually muted or just disconnected.

Also note the distinction from a plain Switch: this has no Input widget at all, so you can't hard-select a slot. If you need a manual pick, use Model Switch-style nodes or gate with an Any Switch. And the recurring pack note: v1 of RvTools was pulled from GitHub in early 2025 (breaking old workflows), v2 renamed every node, and the pack is now deprecated in favor of ComfyUI_Eclipse. Multi-switches are exactly the nodes the author built the pack around, so they're well-tested - just keep the maintained successor in mind for new builds.

Category🫦 RvTools II/ Multi-Switches

Inputs (5)

NameTypeDefaultDescription
input1optMODEL—
input2optMODEL—
input3optMODEL—
input4optMODEL—
input5optMODEL—

Outputs (1)

NameTypeDescription
modelMODEL—