DP Draggable Int 4step
A draggable integer that snaps to multiples of 4
- value
A draggable integer locked to multiples of 4, from 0 to 1000. Same family as the 1-step and 8-step versions - the difference is entirely the grid it snaps to. This one moves 0, 4, 8, 12, 16, and never stops on the numbers between.
The point of a stepped selector is that it can't give you an off-grid value. When something in your pipeline wants a multiple of 4 - certain batch groupings, tile counts, values that need to divide evenly - a 4-step knob makes it physically impossible to fat-finger a 5 where the workflow needed a 4. It's a small guardrail that saves the occasional confusing error or wasted re-queue.
The one input
value(0–1000, step 4, default 500) - drag or type; it resolves to the nearest multiple of 4.
Output is a single value (INT) for any integer input downstream.
When to reach for the 4-step specifically
Honestly, the step size you want depends on the target. If the downstream node cares about divisibility by 4, use this. If it wants multiples of 8 (image dimensions, a lot of frame counts), the 8-step is the better match. If it wants any old integer, the 1-step gives you every value. The 4-step sits in the middle - coarser than by-ones, finer than by-eights - which suits values that step in fours or where you want quicker dragging than the 1-step gives without jumping as far as the 8-step.
How to install it
ComfyUI Manager: search ComfyUI-Desert-Pixel-Nodes, install, restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/DesertPixelAi/ComfyUI-Desert-Pixel-Nodes
then restart. No dependencies, no models. Under the "DP" utils category.
Common issues & troubleshooting
I need a value that isn't a multiple of 4. This node can't produce one - that's the design. Switch to the 1-step draggable int (every integer) or a plain int primitive.
I need to go above 1000. The cap is 1000. For larger integers, the 1-step version reaches 2000, or use a core integer node with no ceiling.
It's snapping and I didn't want that. You picked the stepped selector; the snapping is the feature. If you want free integer choice, the 1-step is the one to grab. The stepped variants exist precisely so that certain values can't drift off their required grid - pick the one whose grid matches what the downstream node expects.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | INT | 5000–1000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| value | INT | — |