Nodes/ComfyUI-UtilsCollection/StaticInt (Legacy)
ComfyUI Node

StaticInt (Legacy)

Stop typing the same number into five widgets

By silveroxides·Created 2 months ago·Updated about 7 hours ago· 24
StaticInt (Legacy)
    • INT
    value

    This is the most boring node in this pack, and that's the point. StaticInt is a fixed integer that doesn't randomize, doesn't compute, doesn't decide anything. It holds one number you typed and hands it to anything that asks. If you've ever changed a batch size in three places, missed one, and spent a run wondering why the output came out weird, you already know why this exists.

    Why a plain value node is worth a slot

    In ComfyUI, a value you type into a widget is trapped inside that node. The moment you want that same number in a few different places, you have two options: retype it and pray you remember every spot, or make the value a wire. Primitives exist for the second one - they break the value out of the widget and let it fan out from a single socket, so there's exactly one authoritative source.

    That's the whole job of the "value node" layer of ComfyUI, and StaticInt is a clean little specimen: one value input (INT, the full 64-bit range, defaulting to whatever you type), one INT output, and an execute method that literally returns the input unchanged. Nothing to tune, nothing to break.

    How to put it to work

    The standard trick applies to almost any integer widget - seeds, steps, batch counts, latent width and height:

    1. Right-click the widget (say, steps on a KSampler) and choose Convert widget to input.
    2. Wire this node's INT output into the new socket.
    3. Change the value once on StaticInt, and every node fed from it updates together.

    Unlike its sibling RandomInt in the same pack, there's no dice here and no control-after-generate behavior. The value stays exactly where you left it. That's the difference you're buying: predictable. This is the one you reach for when the number should never change between runs.

    The trap nobody mentions

    StaticInt is just a wire-carried number. If your workflow has several of them (steps, seed, width, height, count), you end up with five little boxes on the canvas, and the graph gets visually noisy. That's fine - but if you find yourself managing a pile of primitives, this is the moment to look at the context/pipe packs (the ecosystem's answer is running a whole bundle of values down one wire). For a couple of numbers, StaticInt is simpler.

    Also note: it outputs INT only. Pair it with a convert node if a downstream widget wants a float - some widgets silently coerce, others don't.

    Installing it

    It ships in silveroxides/ComfyUI-UtilsCollection. ComfyUI Manager: search ComfyUI-UtilsCollection, install, restart. Or manually:

    cd ComfyUI/custom_nodes
    git clone https://github.com/silveroxides/ComfyUI-UtilsCollection
    cd ComfyUI-UtilsCollection
    pip install -r requirements.txt   # opencv-python, typing-extensions
    

    Restart and it's registered. No model downloads - this whole pack is lightweight (AGPL-3.0, a small newer collection, mid-2026). You found the legacy alias; its canonical twin is UC_StaticInt, and the two are interchangeable under the hood.

    Categoryutils/primitive

    Inputs (1)

    NameTypeDefaultDescription
    valueINT-9223372036854776000–9223372036854776000

    Outputs (1)

    NameTypeDescription
    INTINT