Nodes/Endless ️🌊✨ Nodes/Six Input Integer Switch (Widget)
ComfyUI Node

Six Input Integer Switch (Widget)

Six-Way Integer Switch, Zero Extra Nodes on the Canvas

By tusharbhuttΒ·Created 3 years agoΒ·Updated about a year agoΒ· 68
Six Input Integer Switch (Widget)
    • INT
    β—„switch1β–Ί
    β—„int10β–Ί
    β—„int20β–Ί
    β—„int30β–Ί
    β—„int40β–Ί
    β—„int50β–Ί
    β—„int60β–Ί

    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.

    CategoryEndless 🌊✨/Integer Switches

    Inputs (7)

    NameTypeDefaultDescription
    switchINT11–6β€”
    int1optINT0β€”
    int2optINT0β€”
    int3optINT0β€”
    int4optINT0β€”
    int5optINT0β€”
    int6optINT0β€”

    Outputs (1)

    NameTypeDescription
    INTINTβ€”