Nodes/RF Nodes/Repeat (FLOAT)
ComfyUI Node

Repeat (FLOAT)

Generate a sweep of float values and feed them to a batch

By foxtrot-roger·Created 3 years ago·Updated 2 years ago· 2
Repeat (FLOAT)
    • values
    start0.00
    step1.00
    count10.00

    Parameter sweeps are the quiet workhorse of ComfyUI - run CFG at 6, 7, 8, 9, compare, repeat - and doing them by hand means editing a number and queuing ten times. Repeat (FLOAT) (RF_RangeFloat) turns a start, step, and count into a list of float values, which is exactly the shape of data a batch loop wants to chew through. It's the float-flavored member of RF Nodes' range family, and despite the slightly odd display name, it's a genuinely useful little node.

    How it works

    It's Python's range() dressed for floats: it produces values from start upward, adding step each time, stopping after count entries. So start=6, step=1, count=4 yields [6.0, 7.0, 8.0, 9.0]. The output is flagged as a list (OUTPUT_IS_LIST), which is what lets it drive batch-style nodes that accept a collection of values - feed each float into your sampler's CFG, denoise, or strength input and the batch walks the whole sweep.

    There's one guard built in: step can't be zero. The node validates that at configuration time and refuses it with "Value cannot be 0." - which saves you from an infinite-range footgun.

    The inputs that matter

    • start - the first value (default 0).
    • step - the increment per entry (default 1). Negative works for counting down.
    • count - how many values to produce (default 10).

    Output: values - a FLOAT list from start to start + count*step (exclusive), stepping by step.

    When you'd use it

    Sweeps and ramps. CFG testing is the textbook case, but it also shines for denoise ladders and LoRA strength scales where you want an even progression across a batch. The negative-step option makes it a natural countdown as well - start high, step down, watch the batch walk the range.

    Installing RF Nodes

    No dependencies, no models. Via ComfyUI Manager search "RF Nodes", or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/foxtrot-roger/comfyui-rf-nodes
    

    Restart ComfyUI; it's under RF in the menu.

    Common issues

    • "Step 0 won't save." - That's the validation working. Every step must move; a zero step would produce an endless identical range.
    • "The output only makes sense in list-consuming nodes." - Correct - it's a list, so wire it into batch/list inputs, not single-value sockets.
    • "I expected a FLOAT to come out." - The values are floats, but they arrive as a list. If a node rejects the wire, check whether it accepts lists - that's the intended consumption path.
    CategoryRF

    Inputs (3)

    NameTypeDefaultDescription
    startFLOAT0.00
    stepFLOAT1.00
    countFLOAT10.00

    Outputs (1)

    NameTypeDescription
    valuesFLOAT