ToIntList
Collect your seeds, steps and counts into a list
- INT
ToIntList is the integer member of the bmad "make a list" family: it takes several individual INT inputs and bundles them into a single Python list. Integers in a ComfyUI graph are usually parameters - seeds, step counts, batch sizes, layer indices - and this node is how you gather a set of them onto one wire when a downstream node wants them as a list.
The input that matters
inputs_len - the number of input sockets (default 2, up to 32). Set it to 3 and you get int_0, int_1, int_2. Output: a single INT list. Match the count to what you feed; empty slots become empty entries.
Why you'd reach for it
Seed sweeps are the classic case. Collect a handful of seed values, hand the list to a loop or a list-aware sampler stack, and you've got reproducible variation without rebuilding the graph. It also plays with the family's splitters - FromListGetInts hands them back on individual sockets, FromListGet1Int pulls a single one - so you can round-trip between "many int wires" and "one int list" freely.
There's a sibling worth knowing about: the pack's ToFloatList covers floating-point parameters (CFG, denoise, LoRA weights), and the two work identically. Pick the one that matches the type you're actually moving - ComfyUI is strict about INT vs FLOAT sockets, so don't try to feed floats through this one.
Installing
Ships in comfyui_bmad_nodes, bmad4ever's grab-bag of API, CV, and utility nodes. ComfyUI Manager - search "comfyui_bmad_nodes" (or "Bmad Nodes") - install, restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/bmad4ever/comfyui_bmad_nodes
cd comfyui_bmad_nodes
pip install -r requirements.txt
Restart after. No model downloads; pure Python with no extra dependencies.
Unassuming as it is, this is one of those nodes you reach for constantly once you do parameter sweeps - it turns "a wall of seed widgets" into a tidy list you can iterate.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| inputs_len | INT | 20–32 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |