Nodes/spin256-comfyui/Int Selector
ComfyUI Node

Int Selector

A dial of ten numbers for everything you type twice

By Spin256·Created 10 months ago·Updated 10 months ago· 0
Int Selector
    • INT
    index0
    int_00
    int_10
    int_20
    int_30
    int_40
    int_50
    int_60
    int_70
    int_80
    int_90

    Seeds. Steps. CFG. Denoise. Batch size. ComfyUI workflows are full of numbers you type over and over, and typing them is the boring part. Spin256IntSelector is the answer to that specific boredom: ten preset INT slots, one index dial, one number out.

    It's hard to imagine a simpler node. You get ten integer inputs, int_0 through int_9, and an index dial (0 to 9) that decides which of them flows out. Pick the slot, get the number. The whole mechanism is a single list lookup - this is roughly twelve lines of Python, and that's not a complaint, it's the point. No parsing, no math, no hidden state.

    Where it actually earns its keep is when you combine it with the pack's other selectors. Wire the same index value into Spin256IntSelector, Spin256SizeSelector, and Spin256StringSelector, and one number switches an entire generation profile: seed, resolution, and prompt all at once. That turns a forgettable utility into a lightweight "recipe" switcher.

    The inputs that matter:

    • index - the dial. INT, 0 to 9, clamps safely if you somehow push it out of range.
    • int_0 … int_9 - your preset values.

    Output is a single INT, which slots into any integer input you care about: KSampler's seed, steps, or cfg, the batch_size of an empty latent, or a single dimension like the width of an EmptyLatentImage. For seed presets in particular it's nice - store ten seeds you actually liked and stop re-rolling.

    The one gotcha is the defaults. Every slot starts at 0, so an untouched slot isn't empty, it's zero. Dial to a slot you never filled and you'll get a literal 0 out - harmless for a seed, quietly weird for steps or CFG. Get into the habit of filling slots before you dial to them.

    Install is the same as for the whole pack, and it's about as light as ComfyUI installs get:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Spin256/spin256-comfyui
    

    Restart ComfyUI and the nodes appear under the Spin256 category. Or grab it via ComfyUI Manager → Install Custom Nodes, searching "spin256". No dependencies, no models, no API - the pack ships nothing but this trio of selectors in pure Python, and honestly that's a feature.

    Real talk: you don't need this node. A Primitive node plus a switch from rgthree-comfy does the same job, and if you already run a big utility pack, that's probably the better route. But if you want a tiny, dependency-free preset dial and you like the idea of one index number driving seed + size + prompt together, this is exactly as advertised. Just remember slot 0 means zero until you fill it.

    CategorySpin256

    Inputs (11)

    NameTypeDefaultDescription
    indexINT00–9
    int_0INT0
    int_1INT0
    int_2INT0
    int_3INT0
    int_4INT0
    int_5INT0
    int_6INT0
    int_7INT0
    int_8INT0
    int_9INT0

    Outputs (1)

    NameTypeDescription
    INTINT