ComfyUI  >  Nodes  >  ComfyUI Layer Style >  LayerMask: MaskMotionBlur

ComfyUI Node: LayerMask: MaskMotionBlur

Class Name

LayerMask: MaskMotionBlur

Category
😺dzNodes/LayerMask
Author
chflame163 (Account age: 445 days)
Extension
ComfyUI Layer Style
Latest Updated
6/24/2024
Github Stars
0.6K

How to Install ComfyUI Layer Style

Install this extension via the ComfyUI Manager by searching for  ComfyUI Layer Style
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Layer Style in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

LayerMask: MaskMotionBlur Description

Apply motion blur effect to masks for dynamic AI-generated artwork with adjustable blur amount and angle for various motion effects.

LayerMask: MaskMotionBlur:

The LayerMask: MaskMotionBlur node is designed to apply a motion blur effect to a given mask, enhancing the visual dynamics of your AI-generated artwork. This node allows you to simulate the appearance of motion by blurring the mask in a specified direction and intensity. By adjusting parameters such as the blur amount and angle, you can create a variety of motion effects, from subtle shifts to dramatic streaks. This node is particularly useful for adding a sense of movement or speed to elements within your composition, making your artwork more engaging and visually appealing.

LayerMask: MaskMotionBlur Input Parameters:

mask

The mask parameter is the input mask to which the motion blur effect will be applied. This mask defines the areas that will be affected by the blur. It is essential for isolating specific parts of your image for the motion blur effect.

invert_mask

The invert_mask parameter is a boolean option that determines whether the input mask should be inverted before applying the motion blur. When set to True (default), the mask is inverted, meaning the areas that were originally masked will become unmasked and vice versa. This can be useful for applying the blur effect to the background or other specific areas of your image.

blur

The blur parameter is an integer that specifies the intensity of the motion blur effect. It controls how much the mask is blurred, with higher values resulting in a more pronounced blur. The default value is 20, with a minimum of 1 and a maximum of 9999. Adjusting this parameter allows you to fine-tune the strength of the motion effect.

angle

The angle parameter is a float that defines the direction of the motion blur in degrees. It ranges from -360 to 360, with a default value of 0. This parameter allows you to set the angle at which the blur is applied, enabling you to create motion effects in any direction.

LayerMask: MaskMotionBlur Output Parameters:

mask

The mask output parameter is the resulting mask after the motion blur effect has been applied. This mask retains the original dimensions and format but now includes the motion blur effect, which can be used in further processing or directly in your artwork to enhance visual dynamics.

LayerMask: MaskMotionBlur Usage Tips:

  • Experiment with different blur and angle values to achieve the desired motion effect. Subtle adjustments can significantly impact the final result.
  • Use the invert_mask parameter to apply the motion blur to different areas of your image, such as the background or specific elements, to create unique visual effects.
  • Combine this node with other mask manipulation nodes to create complex and dynamic compositions.

LayerMask: MaskMotionBlur Common Errors and Solutions:

"mask.dim is not a function"

  • Explanation: This error occurs when the input mask is not in the expected format or dimensions.
  • Solution: Ensure that the input mask is a tensor with the correct dimensions. If the mask is a 2D tensor, it should be unsqueezed to add an extra dimension.

"Invalid blur value"

  • Explanation: This error occurs when the blur parameter is set to a value outside the allowed range.
  • Solution: Check that the blur value is within the range of 1 to 9999. Adjust the value accordingly to fall within this range.

"Invalid angle value"

  • Explanation: This error occurs when the angle parameter is set to a value outside the allowed range.
  • Solution: Ensure that the angle value is within the range of -360 to 360 degrees. Adjust the value to be within this range.

"Mask inversion failed"

  • Explanation: This error occurs when the mask inversion process encounters an issue.
  • Solution: Verify that the input mask is correctly formatted and that the invert_mask parameter is set appropriately. If the issue persists, try using a different mask or adjusting the mask preprocessing steps.

LayerMask: MaskMotionBlur Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Layer Style
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.