Configurable Int Slider
The Configurable Int Slider for ComfyUI
- int
Integer sliders are the quiet workhorse of ComfyUI tuning. Batch size, steps, frame counts, which image in a batch to show, the index of a seed you're stepping through - all integers, all annoying to drag by grabbing a number label. The Configurable Int Slider, from the ComfyUI-SimpleFloatSlider pack, gives those values a real slider with a big monospace readout and mouse-wheel nudging, and it refuses to produce anything but whole numbers.
It's the integer sibling of the pack's Configurable Float Slider, and the newest of the three nodes (added in v1.1.0, with a step control landing in v1.1.2). Same MIT pack, same author, same clean install - no dependencies, no model downloads, nothing to break.
How it works
Like its float sibling, the division of labor is: JavaScript frontend for all the feel, Python backend for the honesty. The Python node clamps value to [min_value, max_value] and casts to int, so whatever drags, scrolls, or typed text gets there, only a whole number ever leaves the node. The slider UI lives in the pack's js/slider.js, loaded at startup - drag the thumb, scroll over the track, or click the number to type an exact value (Enter confirms, Escape cancels).
The inputs that matter
By default you only see the value slider (default 50). Expand the ▾ configure toggle to reach the rest:
min_value/max_value- the range, defaults0–100. Set these to whatever the downstream node will accept and no further.step- integer, at least1, default1. Dragging and scrolling move by this much. Because it's an integer of ≥1, the slider physically cannot land between whole numbers.
One output: int, the clamped current value. Convert a target node's integer widget to an input and wire this in - a sampler's steps, a Load Image's index, whatever.
The stepping rule
Same deal as the float version: typed values sit exactly where you put them, even off-grid. Type 37 with step 5 and you get 37; drag from there and you go 42, 47, not 40, 45. Edit the step field and the value snaps back onto the grid measured from min_value, which is the escape hatch if you ever want tidy multiples back. The min and max are always reachable because clamping runs after stepping.
Installing it
ComfyUI Manager - search "ComfyUI-SimpleFloatSlider" - or clone:
cd ComfyUI/custom_nodes
git clone https://github.com/Carasibana/ComfyUI-SimpleFloatSlider
Then restart ComfyUI. All three pack nodes land under utils/sliders. There is no requirements.txt and nothing else to install, which is the whole appeal: this pack cannot drag a conflicting dependency into your environment (the shared-dependency pain the KB's ComfyUI ecosystem docs describe).
Troubleshooting
- Slider doesn't appear / plain widget - restart ComfyUI completely; the JS frontend loads on startup.
- Old workflows ignoring saved range - a v1.1.1 bug where saved min/max/step were rebuilt as defaults on load. Fixed; update if you're behind.
- Want to go past 100? - the default range is 0–100 but
min_value/max_valueaccept up to ±1,000,000, so raise the bounds instead of fighting the clamp.
If the value you're tuning is a count or an index, grab this one. If it's a strength like LoRA weight, you want the float version - or the fixed 0–1 Simple Float Slider.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| value | INT | 50-1000000–1000000 | — |
| min_value | INT | 0-1000000–1000000 | — |
| max_value | INT | 100-1000000–1000000 | — |
| step | INT | 11–1000000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| int | INT | — |