ComfyUI Node

LC Slider

A real slider for your numbers, with the right type on the way out

By lonecatone23·Created 2 months ago·Updated 3 days ago· 18
LC Slider
    • *
    value20.00
    min0.00
    max100.00
    step1.00
    decimals0

    ComfyUI's default number widgets are tiny text boxes. They work, but when you're sweeping a parameter through a range - denoise 0.4 to 0.9, CFG, strength - a text box is a lousy instrument. LC Slider puts an actual slider on the node's face, with the min, max, and step you set, so you can feel your way through a range instead of typing guesses.

    It's the value-node idea from the plumbing layer with a better control: one value in, one value out, snapping to your step. The genuinely useful detail is in the output type. Set decimals = 0 and the node emits an INT; set decimals ≥ 1 and it emits a FLOAT. That matters because a lot of ComfyUI inputs are strict about type - a CFG widget converted to a socket will reject a FLOAT source that happens to be an integer value if the type doesn't match, and this node lets you match the consumer instead of fighting it.

    The inputs

    • value - the current position, default 20.
    • min / max - the range (each ±1 billion, so effectively unbounded).
    • step - snap size (down to 1e-6).
    • decimals - 0 → INT output, 1–4 → FLOAT.

    Output is a single * (wildcard) socket - the node declares an any-type output, so it plugs into whatever converted input you point it at. That's the same * wildcard the plumbing doc describes: the output adopts whatever consumer it's wired to, so one slider can feed an INT steps field or a FLOAT denoise field without a second node.

    How it works

    The mechanism is a snap-and-clamp: it snaps the value to the nearest step within the range (swapping min/max if you inverted them), then emits INT or FLOAT based on decimals. No modes, no hidden behavior. It's marked as working with the Nodes 2.0 frontend, so the on-node slider should render fine on current ComfyUI.

    Install

    It ships in the LC123 pack - ComfyUI Manager (search "LC123") or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/lonecatone23/ComfyUI_LC123_nodes
    

    Restart. No extra pip packages; MIT licensed. Cloud-hosted ComfyUI won't have LC123 preinstalled - request it or run local.

    The take

    A small node, but one of the pack's genuinely good friction-killers for anyone who tunes parameters by eye. If you convert a widget to an input and miss a physical slider, this is the replacement. The only thing to remember is the decimals rule - if a consumer is silently rejecting your wire, nine times out of ten it's because the slider is emitting FLOAT where an INT is expected.

    CategoryLC123/utils

    Inputs (5)

    NameTypeDefaultDescription
    valueFLOAT20.00-1000000000–1000000000
    minFLOAT0.00-1000000000–1000000000
    maxFLOAT100.00-1000000000–1000000000
    stepFLOAT1.000.000001–1000000000
    decimalsINT00–4

    Outputs (1)

    NameTypeDescription
    **