FloatSlider-NYJY
A real slider for those float parameters
- FLOAT
- INT
Most float inputs in ComfyUI are number boxes - you type 0.45 and squint. FloatSlider-NYJY gives you an actual slider widget: a number value you drag between min_value and max_value, with a precision dropdown that controls the step size. Set a cfg range of 0 to 20 and slide it; set a denoise range of 0 to 1 and slide it. It's a tiny ergonomics node - the whole point is that dragging beats typing - and it pairs naturally with any parameter input in your workflow.
How it works
The slider widget carries a default of 1.0 and a step defined by the precision you pick. On run, the node rounds the dragged value to that precision and hands it out: with precision 0.1 you get round(number, 1), with 0.01 two decimal places, 0.001 three, and 1 snaps to a whole number. It also emits an INT output alongside the FLOAT, computed by ceiling the value - so a dragged 0.7 gives FLOAT 0.7 and INT 1. If you only care about the float, ignore the int output; if you're feeding a steps-style integer input, it's a convenience you'll appreciate.
Inputs and outputs
- number - the slider itself, FLOAT, default
1, step0.1. The value you drag. - min_value - the slider's lower bound (FLOAT, default 0).
- max_value - the upper bound (FLOAT, default 1).
- precision - dropdown:
1,0.1,0.01, or0.001. Controls rounding of the FLOAT output.
Outputs: FLOAT (the rounded value) and INT (the value ceilinged to an integer).
Installing
Standard pack install: ComfyUI Manager → Install via Git URL → https://github.com/aidenli/ComfyUI_NYJY, restart. Nothing else to it.
Notes from real use
Set min_value/max_value to a sensible range for the parameter you're driving - a slider labeled denoise that runs 0–1 is useful; the same slider running 0–100000 is a trap. The precision dropdown is the "how fiddly do I want this" control; 0.01 is the sweet spot for most sampling parameters. One quirk worth knowing: because the slider itself is a number input rendered as a widget, it's a node that's at its best in the interactive phase of a workflow - tune with the slider, then lock the value in. It's not a scheduler and not a converter; it's just a nicer way to hold a number. For that, it does the job with zero fuss.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| number | FLOAT | 1.0 | — |
| min_value | FLOAT | 0.0 | — |
| max_value | FLOAT | 1.0 | — |
| precision | COMBO | 0.1 | 4 options: 1, 0.1, 0.01, 0.001 |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| FLOAT | FLOAT | — |
| INT | INT | — |