Video Motion Trail π
Ghosting, star trails, and the long-exposure look
- images
- images
Motion trails are the visual signature of long exposures and light painting: a moving subject smears a fading ghost of itself across the frame. The Video Motion Trail node from TensorVizion/OmniNodes gives your generated clips that look - by blending each frame with a decaying accumulation of the frames before it. It's a creative effect node, pure tensor math with zero dependencies, and it's the temporal counterpart to the single-image looks the pack's Image category already provides.
The mechanism is straightforward: walk through the batch in order, keeping a running "trail" buffer that accumulates previous frames at a decay factor. Each output frame is a blend of the current input frame and the accumulated trail, mixed by blend_strength. Two accumulation modes change the character of the effect:
average(default) - soft, dreamy accumulation. Trails wash together gently; good for a smooth, painterly motion blur.lighten- keeps only the brightest value per pixel across the trail. This is the classic star-trail / long-exposure look: moving highlights draw crisp bright streaks while dark regions stay clean.
Inputs and outputs
Three inputs: decay (0β0.99, default 0.85 - how long trails live; 0 means no trail at all, each frame is just itself, and values near 0.99 give very long-lived ghosts), blend_strength (0β1, default 0.6 - how hard the trail is mixed into the current frame), and trail_mode (the two modes above). One output: images.
There's no summary output on this one - it's a pure effect node, in and out.
Install
Ships with OmniNodes:
cd ComfyUI/custom_nodes
git clone https://github.com/TensorVizion/OmniNodes
Or ComfyUI Manager β OmniNodes β restart. No dependencies - it's pure PyTorch tensor math. Under TensorVizion/Video.
Troubleshooting
- Effect is invisible -
decayat 0 disables the trail entirely, and a lowblend_strengthbarely mixes it in. Crank both up to see it; then dial back for taste. - Everything is a white smear -
lightenmode on bright footage accumulates toward white. Dropdecayorblend_strength, or switch toaverage. - Trail drags in the wrong direction - trails always follow the previous frames (backward in time), which is the correct long-exposure behavior. If you want the effect behind moving objects the other way, you'd need a different node entirely.
- Node missing - restart ComfyUI and check the
[OmniNodes]terminal log.
Reach for it when a clip needs a dreamy or long-exposure feel. It's one of the few purely creative nodes in an otherwise utility-heavy pack, and it's fun to throw at a slow camera-pan clip and watch it ghost.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | β | |
| decay | FLOAT | 0.850β0.99 | β |
| blend_strength | FLOAT | 0.600β1 | β |
| trail_mode | COMBO | average | 2 options: average, lighten |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | β |