TS Int Slider
A clean integer knob so you don't drag a math node onto your graph
- int_value
Some parameters are just numbers, and ComfyUI has a way of making you work for them. You want a resolution knob or a step counter feeding a node that expects an INT input, and the "proper" way is to wire a Primitive or a math node and then fight the widget. TS Int Slider is the opposite of that: a single-purpose integer slider that returns an INT. Drag it, that's the number. Done.
It's the kind of node you don't appreciate until you've built a workflow where a resolution value needs to be adjustable without editing a hardcoded default inside some other node's widget. Sliders sit nicely next to the nodes they feed, update live, and keep your graph readable - one clean wire instead of a tangle.
How it works
There's not much mechanism to explain, which is the point. It's a slider whose position is an integer, exposed as a single required input (value) and a single output (int_value). The output just mirrors the widget.
The defaults are tuned for the usual job: step is 8, which snaps to the multiples of 8 that samplers and latent grids like, and the default value is 512 - a sensible start for a resolution knob. The range, though, is the full 32-bit integer span, so it's not a resolution-only widget. Need a seed holder, a frame-count picker, or a batch-size selector? It does those too, at the cost of a coarse default step.
Inputs and outputs
- value - the integer the slider emits. Default 512, step 8, range the whole int32 span.
- int_value - output, the slider's current value as an
INT.
One in, one out. If you want a fractional knob, the pack also ships TS Float Slider - range −1e9 to +1e9 with 0.01 precision by default - and the pair is meant to be the answer to "I need a clean parameter widget without dragging a full math node onto the graph."
Installation
Part of the comfyui-timesaver pack. Install via ComfyUI Manager (search "Timesaver") or:
cd ComfyUI/custom_nodes
git clone https://github.com/AlexYez/comfyui-timesaver
cd comfyui-timesaver
python -m pip install -r requirements.txt
Restart ComfyUI. It's under TS/Utils in the node menu.
The honest verdict
This is a thin node - it doesn't do anything a Primitive node can't. What it does is look and behave like the widget you actually want to drag, with sensible defaults for the resolution/count use case. If your graph is full of hardcoded values you keep editing by hand, replacing them with sliders like this one is the cheapest upgrade you can make to your own ergonomics. If you never touch those values, skip it - there's nothing hidden here.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | INT | 512-2147483648–2147483647 | Integer value emitted by the slider. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| int_value | INT | The slider's integer value. |