Nodes/ComfyUI Layer Style/LayerFilter: MotionBlur
ComfyUI Node Runs on cloud

LayerFilter: MotionBlur

Motion Blur (Layer Style)

By chflame163·Created 3 years ago·Updated 15 days ago· 3,124
LayerFilter: MotionBlur
  • image
  • image
â—„angle0â–º
â—„blur20â–º

Motion Blur smears an image along a direction, the way a fast-moving subject or a panning camera streaks across a photo. It's a directional blur, not the soft all-directions Gaussian kind, and that directionality is the point - it reads as speed. Add it to sell a sense of motion in a still, fake a camera pan, soften a background so a sharp subject pops, or rough up a too-clean AI render so it looks photographed rather than rendered. Small filter, genuinely handy for that last-10% believability.

The mechanism is a directional convolution: each pixel gets averaged with its neighbors along a single line, so detail stretches into a streak in that direction and stays sharp perpendicular to it. Longer averaging line, longer streak.

Two controls, both of them the whole node:

  • angle - the direction of the blur, −90 to 90 degrees. 0 is horizontal (a left-right pan); swing it toward ±90 to tilt the streak vertical or diagonal. Set this to match the motion you're implying - horizontal for a running subject, angled for a dynamic action feel.
  • blur - the strength/length, 1 to 999 (default 20). Low values are a subtle smear; crank it and the image dissolves into pure streaks. 20-ish is a gentle, believable motion; a few hundred is stylized speed-lines territory.

One output, image, the blurred result. It slots straight into your chain.

The most useful trick with this node is selective motion blur, and it's worth spelling out because the node itself blurs the whole frame. Cut your subject out (a mask node like RemBg Ultra), motion-blur the background copy, then composite the sharp subject back over the streaked background - that's the "subject frozen, world rushing past" look, and it's far more convincing than blurring everything. For a moving subject over a still background, do the reverse. Either way, the blur lives on one layer and the composite sells it.

Expectations: this is a real directional smear, so at high blur values edges of the frame lose data and can darken or streak oddly - that's the nature of the filter, not a bug. Keep blur modest for realism and reserve the big numbers for deliberately stylized results.

Install is via the ComfyUI Layer Style pack, where this node lives. ComfyUI Manager: search "ComfyUI Layer Style," install, restart. Manual: cd ComfyUI/custom_nodes && git clone https://github.com/chflame163/ComfyUI_LayerStyle, then pip install -r requirements.txt in the ComfyUI environment and restart. No model to download.

The failure you're most likely to meet is the pack-wide one: Layer Style is large and dependency-heavy, and its most common problem is the whole pack showing "import failed" in the Manager (usually a transformers version clash), which makes every node - Motion Blur included - disappear from your menu at once. If it's missing, the pack didn't import: reinstall it, use the Manager's "Try Fix," and reinstall the requirements into ComfyUI's real Python environment if it persists.

Category😺dzNodes/LayerFilter

Inputs (3)

NameTypeDefaultDescription
imageIMAGE—
angleINT0-90–90—
blurINT201–999—

Outputs (1)

NameTypeDescription
imageIMAGE—