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

Eight Input Integer Switch (Widget)

The Widget int switch

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

    The "(Widget)" suffix on Eight_Input_Int_Switch_Widget is the whole story: this is the version of the eight-input integer switch where every value is a widget you type into directly on the node. No wiring sources in, no hunting for constant nodes - you just fill in eight numbers and flip the selector. If you've ever looked at a forceInput node and thought "I just want to type 28 here," this is the one.

    It's the largest of the Widget int switches (four, six, and eight input versions exist). The mechanism is identical to the plain switch: switch selects a position, and the value at that position passes out as a single INT. The difference is purely ergonomic - widget inputs sit on the node face instead of requiring connections.

    Inputs and outputs

    • switch - integer 1 to 8, required. The selector, also a widget.
    • int1 … int8 - optional integers, default 0, entered directly on the node.

    Output: a single INT - the selected value, or 0 if the position is empty (they default to 0 anyway, so an empty slot just passes 0). The node is registered as an output node, so it runs even with nothing downstream.

    Why pick Widget over the plain version

    Plain int switches expect wired inputs - great when values come from other nodes (a randomizer, a resolution picker, a constant). The Widget versions are for when the values are yours: a fixed set of steps you use, a shortlist of seeds, a resolution ladder you don't want to rebuild as nodes. The trade-off: once you type a number in, it's baked into the workflow JSON, and changing it means opening the node again. That's fine for presets, annoying for values that should stay dynamic.

    Installing it

    Part of Endless 🌊✨ Nodes by tusharbhutt:

    cd ComfyUI/custom_nodes
    git clone https://github.com/tusharbhutt/Endless-Nodes
    # restart ComfyUI
    

    Or ComfyUI Manager β†’ search "Endless". No dependencies or model files.

    Gotchas

    Keep switch in 1-8, remember empty slots pass 0, and know the usual pack caveats: one maintainer, AI-assisted, rewritten mid-2025. For a switch this trivial the risk is minimal - but if you only need a handful of typed-in presets, you can likely get the same thing from a general utility pack already in your install instead of adding Endless for one node.

    CategoryEndless 🌊✨/Integer Switches

    Inputs (9)

    NameTypeDefaultDescription
    switchINT11–8β€”
    int1optINT0β€”
    int2optINT0β€”
    int3optINT0β€”
    int4optINT0β€”
    int5optINT0β€”
    int6optINT0β€”
    int7optINT0β€”
    int8optINT0β€”

    Outputs (1)

    NameTypeDescription
    INTINTβ€”