Nodes/Comfyroll Studio/πŸ“œ CR Integer Range List
ComfyUI Node Runs on cloud

πŸ“œ CR Integer Range List

Generate a list of ints to sweep a batch

By Suzie1Β·Created 3 years agoΒ·Updated 2 years agoΒ· 1,291
πŸ“œ CR Integer Range List
    • INT
    • show_help
    β—„start0β–Ί
    β—„end0β–Ί
    β—„step1β–Ί
    β—„loops1β–Ί
    β—„ping_pongfalseβ–Ί

    CR Integer Range List spits out a list of integers - start, stop, step - and that list is the fun part, because in ComfyUI a list output makes everything downstream run once per item. Feed the list into a seed, a step count, or an XY plot axis and you've got yourself a sweep: the graph executes across every value automatically, no manual re-queuing. It's range() for your workflow.

    The everyday use is parameter exploration. Want to see the same prompt across seeds 1000 through 1010? Range list, wired to seed. Want to compare 15, 20, 25, 30 sampling steps? Range list into steps. It pairs naturally with XY-grid nodes, but it works standalone anywhere an integer input will accept a list.

    How it works

    You give it start, end, and step, and it builds the sequence between them. loops repeats the whole sequence N times if you want it to cycle. ping_pong, when on, walks up to the end and then back down instead of jumping to the start - nice for animation-style sweeps where you want a smooth there-and-back rather than a hard reset.

    The output is flagged as a list (not a single value), which is what triggers the per-item execution downstream. That's the mental model to hold: one Integer Range List can turn a single-image workflow into a whole grid of runs, because ComfyUI iterates the graph over the list for you.

    The inputs and outputs that matter

    • start / end - the range bounds.
    • step - the increment. This is what controls how many values you get.
    • loops - repeat the sequence this many times.
    • ping_pong (boolean) - bounce back down instead of restarting. Handy for oscillating sweeps.

    Outputs:

    • INT - the list of integers. Wire it into any integer input (seed, steps, etc.) and it fans out.
    • show_help - wiki link, ignore.

    How to install it

    Comfyroll Studio (Suzie1 and RockOfFire), a mature utility pack - no models, no heavy dependencies.

    • ComfyUI Manager - search Comfyroll Studio, install, restart.
    • Manual - cd ComfyUI/custom_nodes && git clone https://github.com/Suzie1/ComfyUI_Comfyroll_CustomNodes.git, then restart.

    Also on CivitAI.

    Common issues

    The thing that trips people up isn't this node, it's ComfyUI's list semantics. A list output means every downstream node runs once per value - which is exactly what you want for a sweep, but it also means a big range with a small step generates a lot of runs. Start 0, end 1000, step 1 is a thousand executions; that's the number to sanity-check before you hit queue. And if you wire a list into a node that isn't expecting to iterate, behavior can get weird - keep the list on the axis you actually mean to sweep.

    If the node doesn't show up at all, that's the pack load failure: Comfyroll Studio: Failed to load ... and NameError: name 'CR_HalftoneGrid' is not defined in the log. The NameError is a symptom of a real import error higher up - usually an incompatible Pillow version dragged in by another custom node - that can take the whole pack down. Reinstall Pillow (pip install --upgrade --force-reinstall pillow) into ComfyUI's Python and restart.

    Category🧩 Comfyroll Studio/✨ Essential/πŸ“œ List

    Inputs (5)

    NameTypeDefaultDescription
    startINT0-99999–99999β€”
    endINT0-99999–99999β€”
    stepINT11–99999β€”
    loopsINT11–999β€”
    ping_pongBOOLEANfalseβ€”

    Outputs (2)

    NameTypeDescription
    INTINTβ€”
    show_helpSTRINGβ€”