Nodes/ComfyUI-Desert-Pixel-Nodes/DP Transition Frames Selector
ComfyUI Node

DP Transition Frames Selector

A clean dial for transition length

By DesertPixelAi·Created 2 years ago·Updated about a year ago· 25
DP Transition Frames Selector
    • value
    value8

    This is about as small as a node gets, and that's the whole point. It's a single integer knob, locked to 0–36 in steps of 4, with a default of 8. Feed its output into anything downstream that wants a transition-length frame count, and you're picking from ten sane, evenly-spaced values instead of typing a raw number into a free INT widget and hoping it's reasonable.

    It sits in the pack's utils bucket alongside the other draggable-value helpers, and it exists for the same reason those do: a constrained, purpose-built widget beats a generic one when the same choice comes up repeatedly across a workflow.

    How it works

    There's no computation happening here - it's a widget with guardrails. value is bounded 0–36 and steps in fours (0, 4, 8, 12 … 36), and the node just hands that number back out as its output, also named value. Wire it anywhere in your graph that expects an INT frame count for a transition or a blend window - this pack's own DP Video Transition is the obvious pairing, but nothing stops you from routing it into any other frame-count input.

    Worth noting: stepping in fours isn't an arbitrary choice in the wider video-generation world. A lot of local video pipelines chunk time in multiples of four - Wan's VAE, for instance, compresses time roughly 4x, so frame counts there naturally land on 4n+1 boundaries. There's no evidence this node was built specifically with that in mind, but the step size happens to keep your transition lengths landing on numbers that play nicely with that kind of pipeline instead of odd values that don't.

    The inputs and outputs that matter

    There's exactly one of each: value in, value out. Set it, connect it, done.

    How to install it

    ComfyUI Manager: search Desert Pixel, install, restart. Manual:

    cd ComfyUI/custom_nodes
    git clone https://github.com/DesertPixelAi/ComfyUI-Desert-Pixel-Nodes
    

    Restart ComfyUI. No downloads. Under the DP category.

    Common issues & troubleshooting

    I need a longer transition than 36 frames. This node caps out there by design - it's meant for quick, sane transition lengths, not the full range a video might need. If you're after something longer, use a plain ComfyUI INT primitive instead; you'll lose the guardrails but gain the range.

    I need an odd number, like 7 or 15. The step is locked to 4 and can't be loosened from the node itself. Same fix as above - a raw INT widget if you need exact, non-multiple-of-4 control.

    Nothing's actually blending. This node doesn't blend anything - it only produces a number. The actual crossfade happens in whatever node you feed it into (DP Video Transition, for example). If your transition still looks like a hard cut, the problem is downstream, not here.

    Not sure what value to pick. 8, the default, is a reasonable starting point for a quick, unobtrusive blend at typical frame rates. Go higher (24–36) for a slower, more visible dissolve; lower (0–4) for something almost imperceptible.

    CategoryDP/Utils

    Inputs (1)

    NameTypeDefaultDescription
    valueINT80–36

    Outputs (1)

    NameTypeDescription
    valueINT