Nodes/ComfyUI_ezXY/Iteration Driver
ComfyUI Node

Iteration Driver

The simplest way to loop a value N times in ComfyUI

By GMapeSplat·Created 3 years ago·Updated 2 years ago· 25
Iteration Driver
    • Iteration
    • Range
    iterations1

    Iteration Driver is the stripped-down version of ezXY Driver - no columns, no rows, just "give me a list of N numbers." Reach for it when you're sweeping one thing (a single axis of CFG values, a single LoRA strength ramp) rather than building a full two-axis grid, or anywhere else in a workflow where you just need "run this N times" as a list.

    How it works

    Set iterations and it outputs a sequential integer list of that length as Iteration, plus Range - the same count, as a single number rather than a list, for wiring into things that want a plain integer (Line to Console, a math node, a sanity check against another list's size). Wire Iteration into the index input of String from List, Number from List, or Item from Dropdown, and each of your list's items gets used exactly once, in order, across N executions.

    It's the same "wire a list into an index and let ComfyUI's per-item execution do the fan-out" trick that ezXY Driver uses for two-dimensional grids - Iteration Driver is just the one-dimensional version, and it's usually the first node to reach for if you're not actually building a plot image, just running a straightforward parameter sweep.

    Inputs and outputs

    • iterations (INT, default 1, 1–999) - how many times to loop. The only thing you set.
    • Iteration - a sequential list of integers, one per loop.
    • Range - the total count, as a single number.

    Installing ComfyUI_ezXY

    Via ComfyUI Manager: search "ComfyUI_ezXY", install, restart. Manual:

    cd ComfyUI/custom_nodes
    git clone https://github.com/GMapeSplat/ComfyUI_ezXY.git
    

    No models, no extra dependencies - it's one of the lightest nodes in the pack.

    Common issues & troubleshooting

    This is about as simple as a node gets, so genuine node-specific bugs are rare - the failure mode people hit is downstream, where the list it produces doesn't line up with the value list you're actually indexing into. Match iterations against the size of whatever list you're picking from (Strings to List, Numbers to List) or you'll get silent wraparound instead of an error.

    It still inherits the pack's general health warning: the README says outright it "does not work with current version of Comfyui," and the GitHub issue tracker has a real example of a user in 2025 stuck enough to ask about forking a single node out because the repo had broken and the maintainer had gone quiet. If Iteration Driver or anything wired to it throws on a fresh ComfyUI update, that's consistent with reports from other users, not necessarily something in your graph.

    CategoryezXY/list generation

    Inputs (1)

    NameTypeDefaultDescription
    iterationsINT11–999

    Outputs (2)

    NameTypeDescription
    IterationINT
    RangeINT