Nodes/ComfyUI - NeoGriever/NGs Sliders - STEPPER
ComfyUI Node

NGs Sliders - STEPPER

Turn a percentage into a literal step count

By NeoGriever·Created 2 years ago·Updated 2 years ago· 2
NGs Sliders - STEPPER
    • steps
    • cut
    steps50
    percentage0.00

    One naming note before anything else: this node's display name in ComfyUI is "NGs Sliders - STEPPER," while its internal class name - and this page's slug - is NGs_Sliders_PERCENTAGECUT. If you're hunting for it by the name you saw in the node browser, "Stepper" is what to search for.

    You know you want a hi-res pass, a refiner switch, or a KSampler Advanced's start_at_step to kick in "around 60% of the way through" - but every one of those inputs wants a literal step count, not a percentage, and redoing steps × percentage in your head every time you change the step count is exactly the kind of busywork a node should absorb instead. The README's own line for it: "Ever struggled with setting step intervals? This node solves that by letting you define the steps and percentage values, while it calculates the rest."

    How it works

    It takes your total steps and a percentage, multiplies them, and hands back both numbers: steps passed straight through unchanged, and cut - the computed integer step index at that percentage of the way through. Passing steps through means you can wire your step count into this node once and have it fan out to both your sampler and this node's own math without a second connection.

    The inputs and outputs that matter

    • steps - default 50, range 1–10000, your total step count.
    • percentage - a FLOAT between 0 and 1 (not 0–100).

    Outputs: steps (INT, passthrough) and cut (INT, the computed step at that percentage).

    The passthrough on steps is a small but genuinely useful detail: it means you only have to change your step count in one place. Wire your total step count into this node, take steps back out to your sampler and cut out to whatever needs the computed boundary (a hi-res fix trigger, a second-pass KSampler's start_at_step), and adjusting the total later doesn't mean hunting down every place you typed that number manually - it recalculates everywhere downstream automatically.

    How to install it

    ComfyUI Manager: search "NeoGriever," install, restart. Manual:

    cd ComfyUI/custom_nodes
    git clone https://github.com/NeoGriever/ComfyUI-NeoGriever
    

    then restart. No dependencies, no downloads.

    Common issues & troubleshooting

    Fed it 60 instead of 0.6. percentage is a 0–1 fraction, not a 0–100 percent value - this is the single most likely mistake, since "percentage" as a word invites typing 60. Feed it 0.6 for 60%.

    Off-by-one at the boundary. The exact rounding behavior (floor, round, or ceiling) for cut isn't documented anywhere, including the README. If your workflow needs an exact step boundary rather than "approximately there," it's worth sanity-checking the output once against your actual steps value before relying on it - try steps=50, percentage=0.5 and confirm whether cut comes back as 25 or 24/26.

    CategoryNeoGriever/Sliders

    Inputs (2)

    NameTypeDefaultDescription
    stepsINT501–10000
    percentageFLOAT0.000–1

    Outputs (2)

    NameTypeDescription
    stepsINT
    cutINT