Integer
A plain whole-number input you can wire anywhere
- INT
Odds are you didn't go looking for this node. It showed up as a little box in a workflow you downloaded, it says "Integer," and you're here because you want to know what it does before you touch it. Good instinct. The answer is boring in the best way: JWInteger holds one whole number and hands it out on a wire. That's the whole job.
Why does that need its own node? Because in ComfyUI a lot of settings - a seed, a step count, a width, a batch size, a frame index - are just integers, and sometimes you want one number to drive several of those at once, or you want it sitting out in the open as a labelled knob instead of buried inside a sampler. Wire one JWInteger into three places and you change all three by editing one box. That's the pattern this node exists for. It's the same philosophy as the quality-of-life packs like rgthree - nodes that generate nothing themselves, they just make a big graph something you can actually reason about.
How it works
There's no mechanism to speak of, and that's the point. You type a number into the widget, the node outputs that number, done. It doesn't compute anything, doesn't remember anything between runs, doesn't reach out to anything. Think of it as a constant that got a face and a wire.
The inputs and outputs that matter
value(INT) - the number. Default0. The range is enormous (roughly ±1.8×10¹⁹), so you will never hit the ceiling on a seed or a step count. Type your integer here.- Output:
INT- the same number, on a wire. Drag it into any integer socket: a KSampler'ssteps, an Empty Latent'sbatch_size, a resize node'ssize, whatever.
That's it. No hidden second output, no mode switch.
How to install it
This node ships in jamesWalker55/comfyui-various, a grab-bag of small utility nodes. Two ways in:
- ComfyUI Manager (easiest): open Manager, search for "Various ComfyUI Nodes by Type", install, and restart ComfyUI. If you opened someone else's workflow and JWInteger is showing up red, Manager's Install Missing Custom Nodes will find it for you.
- Manually:
Then restart. No models to download, no extra Python packages - the whole pack is lightweight plumbing.cd ComfyUI/custom_nodes git clone https://github.com/jamesWalker55/comfyui-various
After it loads, you'll find it in the node menu under the jamesWalker55 category (right-click → Add Node, or double-click the canvas and type "Integer").
Common issues
The honest truth is there isn't much that can go wrong with a number-in-a-box. The two things that trip people up are both about the pack, not the node:
- The node is red / "not found." The pack isn't installed. Run Install Missing Custom Nodes in Manager, or clone the repo, then restart fully - a soft browser refresh won't register new Python nodes.
- "Do I even need this?" If you only ever use the number in one spot, ComfyUI's built-in primitive or the widget already on the target node does the same thing. JWInteger earns its keep when you want one number feeding several nodes, or a clean labelled control panel at the edge of a messy graph. If that's not your situation, you can delete it and type the value directly.
One nuance worth knowing: this is a plain constant, not a counter. It won't increment across a batch or step through values on its own - for that you'd reach for a different node. JWInteger sits still and holds the value you gave it.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | INT | 0-18446744073709550000–18446744073709550000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |