ComfyUI Node

Float List

Six floats, one pick-by-index node

By shockz0rz·Created 3 years ago·Updated 2 years ago· 28
Float List
    • current value
    • list
    • list text
    index1
    decimal_places3
    float11.00
    float21.00
    float31.00
    float41.00
    float51.00
    float61.00

    Float List is the simplest member of the Easy Grids family: six float slots, an index, and the node hands you whichever float the index points at. It exists to be driven by a loop - feed the index from Create Image Grid and each cell of your grid gets a different number, without you touching the graph between runs.

    How it works

    You fill in float1 through float6. The index input (1-based, min 1) selects one of them, and out come three things:

    • current value - the selected float (FLOAT), ready to wire into a KSampler, an upscaler, a LoRA strength, anything numeric
    • list - all six floats as a FLOAT_LIST, if some downstream node wants the whole array
    • list text - the same six values formatted as strings (STRING_LIST), perfect for feeding labels into Save Image Grid

    There's a decimal_places input (default 3) that controls how the text output is formatted - it affects list text only, not the raw numbers. If index goes past six, the node just returns the last value rather than erroring. That's a deliberate "hold the last setting" behavior, and it's more useful than it sounds - the final grid row can keep a stable value without you padding the list.

    When to use it (and when not to)

    This is the right tool when you're testing a handful of discrete values - a few denoise levels, three or four CFG settings, a short sweep of upscale factors. Six slots is the ceiling, and the sliders for each float are right there on the node, which makes tweaking a value mid-test painless.

    If you need more than six values, or you want to type them as text instead of clicking sliders, use the sibling node Float List from Text Field instead - it accepts an arbitrarily long list in a text box. The two nodes share the same three outputs, so swapping one for the other doesn't touch anything downstream.

    Installing it

    Part of comfy-easy-grids - one install covers the whole pack. Use ComfyUI Manager (search "comfy-easy-grids") or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/shockz0rz/comfy-easy-grids
    

    Restart ComfyUI. No requirements.txt, no model downloads; the pack runs on stock ComfyUI. Look under "EasyGrids" in the Add Node menu.

    Troubleshooting

    The classic confusion is the 1-based index. Slot float1 is index 1, not 0 - if you're porting a workflow that expected 0-based indexing, everything shifts by one. And remember the out-of-range behavior: an index of 7+ silently returns float6 instead of erroring, so a grid that "stops varying" is often just an index running past the list.

    CategoryEasyGrids

    Inputs (8)

    NameTypeDefaultDescription
    indexINT1
    decimal_placesINT3
    float1FLOAT1.00
    float2FLOAT1.00
    float3FLOAT1.00
    float4FLOAT1.00
    float5FLOAT1.00
    float6FLOAT1.00

    Outputs (3)

    NameTypeDescription
    current valueFLOAT
    listFLOAT_LIST
    list textSTRING_LIST