Nodes/ComfyUI-3D-MeshTool/array1 end increment
ComfyUI Node

array1 end increment

A sequence with a real stopping point

By 807502278·Created 2 years ago·Updated 2 years ago· 23
array1 end increment
    • array
    start0.0
    end3.0
    increment0.5

    If array1 step is the "give me N values" generator, array1 end increment is the "give me values until I reach this number" generator - and for camera work, that's usually the one you actually want. You say "from 0 to 90 degrees in 15-degree steps" and it does exactly that, instead of making you compute the count yourself.

    The three inputs are start, end, and increment, all floats. The output is a LIST starting at start and adding increment until it would pass end: start=0, end=90, increment=15[0, 15, 30, 45, 60, 75]. Note the 90 doesn't land, because 90 is one step past 75. If you want the endpoint included, set end one increment past where you're aiming, or just expect an exclusive end - most array utilities in the world behave this way, so it won't feel alien.

    The edge cases are where this node has opinions. If increment >= end - start, you get back a single-element list with just start. If increment is 0, same thing - a one-value list. If start == end, ditto. The code is explicit about all three, so it's not a bug, it's a "you asked for nothing" guard. Worth knowing because a camera sweep that silently collapses to one frame is confusing to debug.

    This is the node to reach for when you're building a multi-view or turntable render: pair it with array1 to camposes (same pack), which turns rows of [radius, elevation, azimuth, ...] into ComfyUI-3D-Pack camera poses. Generate the elevations with this node, fold them into a pose array, and you've got an orbit sweep without hand-typing every camera.

    807502278/ComfyUI-3D-MeshTool is a one-author 3D utility pack - pure Python on the array side, no models to download. Install via ComfyUI Manager (search "ComfyUI-3D-MeshTool") and restart, or manually:

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

    Pack-wide reminder: the author renames nodes between releases and old ones show up red in saved workflows - recreate and reconnect. And when your sequence doesn't include the endpoint, that's this node's design, not a fault.

    Category3D_MeshTool/Array/list_new

    Inputs (3)

    NameTypeDefaultDescription
    startFLOAT0.0
    endFLOAT3.01–99999
    incrementFLOAT0.5

    Outputs (1)

    NameTypeDescription
    arrayLIST