Six Input Integer Switch (Widget)
Six-Way Integer Switch, Zero Extra Nodes on the Canvas
- INT
Some workflows just need six presets in one place. Six Input Integer Switch (Widget) is the slightly larger sibling of the pack's four-way version: six integer slots living as widgets on the node, one switch dial to pick which passes through, one INT out. Same idea, two extra options - handy for things like a row of step-count presets, a handful of seed values you rotate through, or six resolutions you test against.
How it works
Under the hood it's a one-liner with a guard: it collects int1 through int6 into a list and indexes it with the switch value minus one. Set switch to 3 and you get int3; the whole mechanism is that. The details worth knowing:
- switch (INT, 1β6) - the selector. This is the only input you touch in normal use.
- int1βint6 (INT, optional, default 0) - the candidate values, typed straight into the node body.
- INT output - the selected value, wired into any integer input downstream.
The source treats an out-of-range switch (0 or 7) as returning 0 rather than erroring. That's friendly, but it's also a silent failure mode - if you're A/B/C/D/E/F testing and accidentally leave the switch at 7, you'll get zeros, not a warning. Worth a glance before you queue.
Why the "Widget" version exists
The same pack ships a wired Six_Input_Int_Switch too. The difference is entirely about where values come from: the Widget version's values are typed onto the node (constants, baked into the saved workflow), while the wired version accepts them as connections from other nodes (dynamic, driven by a scheduler or randomizer). For static preset values - which is most real-world switch use - the widget version keeps your canvas clean. If a value ever needs to move, swap to the wired variant or an rgthree-style power switch.
Verdict
It's a simple, honest node with no real drama. Six options on one box is genuinely nicer than chaining two four-way switches for that rare "I need six" case. The pack is a single hobbyist's project (GPL v3, "may or may not be maintained"), but a node this small is low-risk - worst case you swap in any other integer switch. If you're on a big utility pack already, you likely have an equivalent and can skip this; if not, this does the job without ceremony.
Installing the pack
ComfyUI Manager (search Endless Nodes) or:
cd ComfyUI/custom_nodes
git clone https://github.com/tusharbhutt/Endless-Nodes
Restart and look under Endless πβ¨ β Integer Switches.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| switch | INT | 11β6 | β |
| int1opt | INT | 0 | β |
| int2opt | INT | 0 | β |
| int3opt | INT | 0 | β |
| int4opt | INT | 0 | β |
| int5opt | INT | 0 | β |
| int6opt | INT | 0 | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | β |