Numeric Slider 👻
Two Sliders That Just Pass Numbers Through
- float_output
- int_output
The unglamorous node that makes workflows feel nicer
ComfyUI doesn't give you a draggable slider on every numeric input - a lot of widgets are plain number boxes, which is fine until you're tuning a workflow and want something you can feel. Numeric Slider is the simplest possible answer: it exposes one float slider and one integer slider and passes both values straight through. No math, no state, no model. That's the whole job.
You reach for it when you're building a workflow for yourself-or-future-you and want an obvious labeled "strength" or "intensity" control instead of a bare number field. It also works nicely as a shared front-end for a value that feeds several nodes - change it once and every consumer updates. If you already use rgthree's more elaborate slider/switch nodes you may not need this one, but it's a tidy single-node option that carries both a float and an int output.
How it works
It doesn't, really - and that's the point. The output function returns its two inputs verbatim:
def output(self, float_value, int_value):
return (float_value, int_value)
A passthrough node can't break your graph, which is more than you can say for most custom nodes. It exists purely to give you the slider UI.
The interface
Two inputs, two outputs, all self-explanatory:
- float_value (FLOAT slider, default 0.5, range 0–1, step 0.01) - your 0–1 strength control.
- int_value (INT slider, default 0, range 0–999, step 1) - an integer you want to expose.
- Outputs: float_output and int_output, wired straight from the inputs.
Where the limits are
The ranges are baked in. The float is locked to 0–1 and the int to 0–999 - no negatives, no wider float range. For a denoise/strength-style control that's perfect, but if you need −1…1 or 0…100 you'll have to remap the output with a math or range node, or just type into a plain widget instead. It's a convenience node, not a parameter toolkit.
Installing it
Ships in the ComfyUI-Minitools pack, a small personal toolkit from lepi ai - seven nodes under the "MiniTools" category (the ghost 👻 in the display names is their house style). No downloads, no keys.
cd ComfyUI/custom_nodes
git clone https://github.com/lepiai/ComfyUI-Minitools
then restart ComfyUI, or ComfyUI Manager → search "ComfyUI-Minitools" → Install → Restart.
One pack-wide gotcha even for this trivial node: the pack imports its LLM node at startup, and that module needs the openai package. If openai isn't installed, the whole pack fails to load and Numeric Slider disappears with it. Manager installs the pinned requirements for you; if you cloned manually, run pip install -r requirements.txt in ComfyUI's Python environment before you start debugging why a slider is "missing."
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| float_value | FLOAT | 0.500–1 | — |
| int_value | INT | 00–999 | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| float_output | FLOAT | — |
| int_output | INT | — |