StaticInt
Your Graph's Favorite Integer, Held in One Place
- INT
A node that outputs one integer. That's the entire spec, and honestly it's the spec that earns its keep a hundred times over. UC_StaticInt is the integer counterpart to UC_StaticFloat: a stable, explicitly-typed value you can fan out to every socket that needs it.
Why you'd reach for it
ComfyUI workflows are full of integers that want to be one source instead of five widgets - the seed, the steps, the batch count, the width/height pair on a latent or a controlnet processor. Type the value into this node once, wire the INT output to every consumer, and the graph holds the number instead of your memory. It's the classic companion to right-click → Convert widget to input: turn the seed widget on your KSampler into a socket, drop a UC_StaticInt on it, and now seed changes live in one obvious place.
It's the explicit-typed alternative to core's polymorphic Primitive node, which morphs to match whatever socket you plug it into. The static version is unmagical by design: it declares INT up front, no inference, no surprises. The range matches a signed 64-bit integer, so it'll hold any seed or step count you can realistically type.
The inputs and output
- value - the integer itself. Set it, and the INT output carries it.
That's the whole interface. No randomize dropdown, no control_after_generate - if you want the value to roll a new number each run, you want UC_RandInt or UC_IntegerRangeRandom instead. This node is for the boring, stable stuff: a fixed seed you're reproducing, a steps count you always use, a resolution dimension.
How to install it
It lives in ComfyUI-UtilsCollection (author: silveroxides, the HuggingFace quantizer behind the Chroma-GGUF line):
cd ComfyUI/custom_nodes
git clone https://github.com/silveroxides/ComfyUI-UtilsCollection
Restart ComfyUI, or find "ComfyUI-UtilsCollection" in Manager. This node pulls nothing extra - the pack's whole dependency list is opencv-python plus typing-extensions, and a static integer needs neither.
Anything to watch for?
Only the usual primitive confusion: this pack replaces the logic/math nodes from ComfyUI-LogicMath and a couple of scheduler packs, so loading an old workflow may trigger ComfyUI's "replace these nodes?" prompt. Accepting keeps behavior intact. And if you end up with three UC_StaticInt boxes in a graph, rename them - "seed", "steps", "batch" as titles beats a row of identical boxes when you come back to the workflow next week.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | INT | -9223372036854776000–9223372036854776000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |