Int Iterator
The no-nonsense loop for whole numbers, from seed ranges to batch counts
- INT
Sometimes you want the sweep version of the FloatIterator's idea but the numbers only come in whole increments - seed ranges, step counts, batch sizes, "try batch 1 through 6." IntIterator is exactly that: start, stop, step, done. It emits a list of integers and ComfyUI fans that list out, running your downstream chain once per value, no manual re-queueing.
It's the thinnest node in the wakaura-asaho/comfyui-dynamic-selector pack, and that's a compliment. There's no parsing, no drift guards to worry about - integers are exact - just a straightforward range.
How it works
Three inputs, mirroring its float sibling:
initialization- the start (default0).condition- the stop (default10).update- the step (default1).
It builds range(start, stop, step) and hands you the whole list on one INT output. Since it's a list output, ComfyUI unpacks it and runs everything downstream once per integer. The stop value is exclusive - start 0, stop 10 gives you 0 through 9 - which trips up roughly everyone once.
The validation is the same defensive story as the float version: a zero step is rejected, a positive step needs start less than stop, a negative step needs the reverse. The point is you can't accidentally construct a range that never terminates and queue forever.
The inputs that matter
initialization,condition,update- the whole node. Set start, stop, step, go.
Installing it
No model downloads, no heavy dependencies - this pack just needs a recent ComfyUI frontend. ComfyUI Manager → "Install via Git URL" → paste https://github.com/wakaura-asaho/comfyui-dynamic-selector → restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/wakaura-asaho/comfyui-dynamic-selector
# restart ComfyUI
Gotchas
Remember the stop is exclusive - if you want to iterate 0 through 10 inclusive, set condition to 11. And think before you widen the step-to-range ratio; a huge range with step 1 is a big batch, and ComfyUI will dutifully run all of it. The pack is new, experimental, and written for the new V3 node API (frontend >= 1.37.11, base >= 0.12.3), so if the node doesn't appear after install, update ComfyUI first. If you only need a handful of specific integers rather than a contiguous range, this isn't the tool - a StringIterator fed a short list is lighter, or just enumerate them by hand.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| initialization | INT | 0-9999999–9999999 | — |
| condition | INT | 10-9999999–9999999 | — |
| update | INT | 1-9999999–9999999 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |