DP Diff Int 8step Selector
An integer that only lands on multiples of 8
- value
A single integer output that snaps to multiples of 8. That's the whole node. You drag the value, it moves in jumps of 8 - 8, 16, 24, 32 - and never lands on the numbers in between. It exists because a lot of things in a diffusion graph want multiples of 8 and it's annoying to keep typing them by hand.
Desert Pixel groups this one with their animation frame-count selectors, and that's the tell for what it's really for: frame counts and dimensions. Its range runs 0 to 1920 with a default of 24 - 24 being a film frame rate, 1920 being a familiar video width. So it's aimed squarely at video and animation work, where "how many frames" and "what dimension" both benefit from staying on a clean grid. The name's a bit cryptic ("Diff" isn't spelled out), but functionally it's a constrained integer knob.
The one input
value(0–1920, step 8, default 24) - the number. Drag it or type it; either way it resolves to the nearest multiple of 8.
Output is a plain value (INT) that wires into any node expecting an integer - a frame count on a video node, a width or height, a batch size, whatever needs to stay divisible by 8.
Why the multiple-of-8 constraint matters
Diffusion latents are downsampled 8x from pixel space, so image and video dimensions have to be divisible by 8 or the model complains (many workflows really want 64, but 8 is the mechanical floor). Frame counts for a lot of video models and interpolation schemes also come in multiples. Using a stepped selector means you physically can't fat-finger a 25 where the pipeline needed a 24, which is a small thing that saves a re-queue.
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 models, no dependencies. It's under the "DP" utils category - type "DP Diff Int" in the node search.
Common issues & troubleshooting
I need a value that isn't a multiple of 8. Then this is the wrong node - it can't produce one. Use a plain integer primitive or one of the pack's 1-step draggable ints instead. This node's entire value proposition is that it can't give you an off-grid number.
I need to go above 1920. The cap is 1920. If you need larger - a long frame sequence or an oversized dimension - reach for one of the other DP int nodes with a wider range, or a core integer node. Bumping video length or resolution past what your model handles well is usually a bad trade anyway; longer sequences drift and oversized frames duplicate content.
It's overkill for a fixed number. If the value never changes, you can just type it into the downstream node. This selector pays off when you're sweeping a parameter and want the safety rail of staying on multiples of 8 while you do.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | INT | 240–1920 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| value | INT | — |