🔢 AGSoft Loop Fix Integer
Ten integer inputs, one list out, zero dropped values
- INT
The integer version of the pack's "loop fix" family. You type up to ten integers into plain fields, and they come out the other side as a single INT list - the exact shape a looping node wants to iterate over. That's the entire node, and it exists because feeding a loop with hard-coded values in ComfyUI is usually more fiddly than it has any right to be.
The detail that defines it: all values including zero are passed. That's in the node's own description, and it's the reason the "Fix" family exists at all. Some float/int widgets in the ecosystem treat 0 as "empty" and drop it, which silently shortens your list and shifts every subsequent step. If you're looping a sequence like [0, 1, 2, 3] for a seed walk or a step counter, a dropped zero isn't a minor glitch - it's a wrong workflow. This node guarantees the list is exactly what you typed.
How it works
int_1 through int_10, each in the range -10000 to 10000, step 1. number_of_inputs (1–10, default 10) selects how many fields are actually collected - set it to 4 and only int_1…int_4 make it into the list, which keeps the node tidy when you only need a few values. No precision setting here (integers don't need rounding), and the output is a single INT list.
Installation
From comfyui-AGSoft:
cd ComfyUI/custom_nodes
git clone https://github.com/Art-xmaster/comfyui-AGSoft.git
# restart ComfyUI
Or via ComfyUI Manager (search "comfyui-AGSoft"). No model downloads, no extra heavy dependencies.
Where it fits
Use it when you need a specific sequence of integers as a list - a fixed set of seeds, a handful of CFG values, a step schedule you've already decided on. For sequences you want to generate (start, end, step), that's AGSoft Loop Integer's job. For floats or text, the siblings are AGSoft Loop Fix Float and AGSoft Loop Fix Text. If your values come from elsewhere in the graph, skip this and use a real list source. It's not glamorous, but when you're iterating a loop and the list is quietly one element short, a node that guarantees "what you typed is what you get" stops being boring very fast.
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| number_of_inputs | INT | 101–10 | How many inputs to use (1-10). Сколько входов использовать (1-10). |
| int_1 | INT | 0-10000–10000 | Integer value 1. Integer значение 1. |
| int_2 | INT | 0-10000–10000 | Integer value 2. Integer значение 2. |
| int_3 | INT | 0-10000–10000 | Integer value 3. Integer значение 3. |
| int_4 | INT | 0-10000–10000 | Integer value 4. Integer значение 4. |
| int_5 | INT | 0-10000–10000 | Integer value 5. Integer значение 5. |
| int_6 | INT | 0-10000–10000 | Integer value 6. Integer значение 6. |
| int_7 | INT | 0-10000–10000 | Integer value 7. Integer значение 7. |
| int_8 | INT | 0-10000–10000 | Integer value 8. Integer значение 8. |
| int_9 | INT | 0-10000–10000 | Integer value 9. Integer значение 9. |
| int_10 | INT | 0-10000–10000 | Integer value 10. Integer значение 10. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| INT | INT | — |