Nodes/comfyui-AGSoft/🔢 AGSoft Loop Fix Integer
ComfyUI Node

🔢 AGSoft Loop Fix Integer

Ten integer inputs, one list out, zero dropped values

By Art-xmaster·Created 12 months ago·Updated a day ago· 23
🔢 AGSoft Loop Fix Integer
    • INT
    number_of_inputs10
    int_10
    int_20
    int_30
    int_40
    int_50
    int_60
    int_70
    int_80
    int_90
    int_100

    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_1int_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.

    CategoryAGSoft/Utility

    Inputs (11)

    NameTypeDefaultDescription
    number_of_inputsINT101–10How many inputs to use (1-10). Сколько входов использовать (1-10).
    int_1INT0-10000–10000Integer value 1. Integer значение 1.
    int_2INT0-10000–10000Integer value 2. Integer значение 2.
    int_3INT0-10000–10000Integer value 3. Integer значение 3.
    int_4INT0-10000–10000Integer value 4. Integer значение 4.
    int_5INT0-10000–10000Integer value 5. Integer значение 5.
    int_6INT0-10000–10000Integer value 6. Integer значение 6.
    int_7INT0-10000–10000Integer value 7. Integer значение 7.
    int_8INT0-10000–10000Integer value 8. Integer значение 8.
    int_9INT0-10000–10000Integer value 9. Integer значение 9.
    int_10INT0-10000–10000Integer value 10. Integer значение 10.

    Outputs (1)

    NameTypeDescription
    INTINT