ComfyUI Node

array1 step

A sequence generator whose 'step' means count, not spacing

By 807502278·Created 2 years ago·Updated 2 years ago· 23
array1 step
    • array
    start0.0
    step3
    increment4.0

    The array1 family of nodes in this 3D pack exists for one reason: so you can type a few numbers and get a batch of values to loop over - camera elevations, orbit angles, batch sizes, whatever your workflow needs to sweep. array1 step is the most basic of the bunch, and it has a naming trap you should know about before you trust it.

    The inputs are start, step, and increment. You'd read that as "start here, step by this much" - and you'd be wrong. In this node step is actually the number of values to produce, and increment is the spacing. So start=0, step=5, increment=1 gives you [0, 1, 2, 3, 4]: five values starting at 0, spaced 1 apart. The math in the source is literally start + i*increment for i from 1 to step-1, appended after start. "Step" is a count, not a stride.

    That confusion is the whole reason this node trips people up, and it's also why you should sanity-check the output list in the UI before wiring it somewhere important. Set step=1 and you just get [start] alone - which is technically correct but probably not what you meant.

    The output is a single array (a LIST), ready to feed anything in this pack that accepts a list - a camera-pose generator, a batch node, or array1 append if you want to chain sequences together. Since the values are plain floats, they'll also plug into plenty of ComfyUI math.

    Honest note: array1 step and array1 step increment are, as shipped, functionally identical - same inputs, same output shape, same math. They're redundant nodes in a pack that has a few. Pick one and ignore the other; nobody will judge you.

    807502278/ComfyUI-3D-MeshTool is a one-author 3D utility pack, and these list generators are pure Python - no models, no downloads. Install it like any custom node:

    cd ComfyUI/custom_nodes
    git clone https://github.com/807502278/ComfyUI-3D-MeshTool
    cd ComfyUI-3D-MeshTool
    pip install -r requirements.txt
    

    Or through ComfyUI Manager: search "ComfyUI-3D-MeshTool", install, restart. One pack-wide gotcha: the author renames nodes between updates, and old ones turn red in saved workflows - recreate and reconnect rather than assuming something's broken.

    Category3D_MeshTool/Array/list_new

    Inputs (3)

    NameTypeDefaultDescription
    startFLOAT0.0-99999–99999
    stepINT31–99999
    incrementFLOAT4.0-99999–99999

    Outputs (1)

    NameTypeDescription
    arrayLIST