ScarlotSoft Switch Pro
A multi-way switch with toggle pills instead of a number box
- input_0
- OUTPUT
ScarlotSoft Switch Pro is the n-way version of the suite's two-way Switch, and it fixes the one thing that makes plain switches annoying: instead of a checkbox or a number you have to remember, each connected input gets its own little toggle pill drawn on the node. Click the pill next to input 3 and input_3 is what comes out of the single OUTPUT socket. It's the "pick one of several branches" problem solved with the least possible ceremony.
Under the hood it's the same wildcard-* routing mechanic as every switch (see the plumbing doc in the KB): the inputs and output are untyped, so you can throw models, images, conditionings, or strings at it interchangeably. The real value is the index - active_index, an integer widget that's deliberately hidden from view because the JS draws the pills for you. The node reads that index, looks up input_<index>, and passes it through. It supports up to 100 sockets in principle; in practice the frontend grows inputs one at a time as you connect them, so it stays tidy no matter how many branches you add.
Where this earns its keep: three or more things you want to flip between without editing wires. Three checkpoint loaders for model testing. A handful of prompt sources - tagger output, hand-typed, wildcard - selected per run. Multiple image inputs for an img2img experiment. Any place where a two-way switch would force you to nest switches, Pro handles in one node.
A few behaviors worth knowing before you rely on it:
- The pills only appear next to connected inputs. Unconnected sockets get no pill and no click target - which is fine, because selecting an unconnected index just passes
Nonethrough. - The selection is the hidden
active_indexvalue, and it's what actually drives the backend. If you're running headless or via API, that widget is still the thing to set - the pills are pure frontend chrome. - The node's boot banner in this pack notes everything works in "Classic mode"; if the pills look wrong after switching UI modes, hard-refresh (Ctrl+Shift+R) before assuming the node is broken.
Install
Standard for the suite. ComfyUI Manager → search "ScarlotSoft" → install → restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/scarlotsoft/ComfyUI_ScarlotSoft
Restart ComfyUI. No extra dependencies.
The honest take
The toggle-pill interface is genuinely the nicest part of this pack - it reads better than a dropdown or remembering "index 2 = the Flux loader." That said, it's still an anything-routing node, and the ecosystem has loudly warned against making every workflow a spaghetti bowl of untyped wires. If you want this kind of n-way selector, rgthree's switch family is the established alternative; this one wins on visual polish and loses nothing on mechanism. If you're already on the ScarlotSoft suite, it's the switch you'll actually reach for.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| active_index | INT | 00–100 | — |
| input_0opt | * | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| OUTPUT | * | — |