ComfyUI Node

Number OutputList

A number range node that won't lose precision on your LoRA sweep

By geroldmeisinger·Created 9 months ago·Updated about 7 hours ago· 183
Number OutputList
    • int
    • float
    • string
    • index
    • count
    start0.00
    stop10.00
    num10
    endpointfalse

    Number OutputList is the smallest node in the pack and one you'll use constantly once it's there: it generates a range of numbers as an output list. LoRA strength sweeps, image width/height variants, animation frame counts - every time you'd otherwise type out 0.4, 0.7, 1.0 by hand, this is the replacement.

    The mechanism is worth knowing because it's the reason this node exists at all: it uses numpy.linspace internally instead of naive step arithmetic. Float ranges generated by repeated addition accumulate rounding error fast (0.1 + 0.2 never quite equals 0.3), and linspace sidesteps that by computing even spacing directly. For animation sweeps that need clean values, that's the difference between a list ending in 0.8999999 and one ending in 0.9.

    The inputs that matter

    • start and stop - the range bounds (floats).
    • num - the number of items, not a step size. This is the classic trap: num=5 from 0 to 10 gives five evenly spaced values, not "every 5th". Don't confuse it with a step.
    • endpoint - whether stop is included. Off by default; flip it on when you want the top value present.

    Outputs are four output lists plus a plain count: int (values floored down - note it rounds down, so 0.9 becomes 0), float, string (for prompts and filenames), and index (0..count, for labels and row/col tracking).

    When you'd actually use it

    The pack's README example is a great template: connect two Number OutputLists (one descending) to image width and height to sweep 256/512/768 × 768/512/256 - portrait, square, and landscape in one run, each image its own size because it's a list. For the animation-LoRA-strength example, use num+1 with endpoint=True so the sweep includes 1.0 cleanly.

    Need arbitrary values or uneven steps instead of a clean range? Skip this node and use JSON OutputList with a literal array like [1, 42, 123] - the README calls this out explicitly, and it's the right tool for "I want these specific values."

    Installing

    Search "OutputLists Combiner" in ComfyUI Manager, or clone it into ComfyUI/custom_nodes:

    cd ComfyUI/custom_nodes
    git clone https://github.com/geroldmeisinger/ComfyUI-outputlists-combiner
    cd ComfyUI-outputlists-combiner
    uv pip install -r requirements.txt
    

    Restart after installing. No model files, no extra downloads - the pandas and skia-python deps are shared with the pack's other nodes.

    CategoryUtility

    Inputs (4)

    NameTypeDefaultDescription
    startFLOAT0.00Start value to generate the range from.
    stopFLOAT10.00End value. If `endpoint=include` then this number is included in the list.
    numINT10The number of items in the list (don't confuse it with a `step`).
    endpointBOOLEANfalseDecides if the `stop` value should be included or excluded in the items.

    Outputs (5)

    NameTypeDescription
    intINTThe value converted to int (rounded down/floored). use(s) `is_output_list=True` (indicated by the symbol `𝌠`) and will be processed sequentially by corresponding nodes.
    floatFLOATThe value as a float. use(s) `is_output_list=True` (indicated by the symbol `𝌠`) and will be processed sequentially by corresponding nodes.
    stringSTRINGThe value as a float converted to string. use(s) `is_output_list=True` (indicated by the symbol `𝌠`) and will be processed sequentially by corresponding nodes.
    indexINTRange of 0..count which can be used as an index. use(s) `is_output_list=True` (indicated by the symbol `𝌠`) and will be processed sequentially by corresponding nodes.
    countINTSame as `num`.