ComfyUI > Nodes > KJNodes for ComfyUI > Create Fade Mask

ComfyUI Node: Create Fade Mask

Class Name

CreateFadeMask

Category
KJNodes/deprecated
Author
kijai (Account age: 2192days)
Extension
KJNodes for ComfyUI
Latest Updated
2024-06-25
Github Stars
0.35K

How to Install KJNodes for ComfyUI

Install this extension via the ComfyUI Manager by searching for KJNodes for ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter KJNodes for ComfyUI 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

Create Fade Mask Description

Generate gradient-based fade masks for smooth opacity transitions, ideal for video/image effects.

Create Fade Mask:

The CreateFadeMask node is designed to generate a fade mask, which is a gradient-based mask that transitions smoothly from one level of opacity to another. This node is particularly useful for creating effects where a gradual change in transparency is needed, such as in video transitions, image blending, or any scenario where a soft fade effect is desired. By adjusting various parameters, you can control the start, midpoint, and end levels of the fade, as well as the frame at which the midpoint occurs. This allows for precise customization of the fade effect to suit your specific needs.

Create Fade Mask Input Parameters:

frames

This parameter specifies the number of frames over which the fade effect will occur. It determines the duration of the fade transition. The minimum value is 0, the maximum value is 255, and the default value is 0.

width

This parameter defines the width of the mask in pixels. It controls the horizontal resolution of the fade mask. The minimum value is 16, the maximum value is 4096, and the default value is 256.

height

This parameter defines the height of the mask in pixels. It controls the vertical resolution of the fade mask. The minimum value is 16, the maximum value is 4096, and the default value is 256.

invert

This boolean parameter determines whether the fade mask should be inverted. If set to True, the mask will be inverted, meaning the fade will transition from opaque to transparent instead of the default transparent to opaque. The default value is False.

interpolation

This parameter controls the interpolation method used for the fade transition. It affects how smoothly the fade progresses from start to end. The specific options and default value are not provided in the context.

start_level

This parameter sets the opacity level at the start of the fade. It determines the initial transparency of the mask. The specific range and default value are not provided in the context.

midpoint_level

This parameter sets the opacity level at the midpoint of the fade. It determines the transparency of the mask at the midpoint frame. The specific range and default value are not provided in the context.

end_level

This parameter sets the opacity level at the end of the fade. It determines the final transparency of the mask. The specific range and default value are not provided in the context.

midpoint_frame

This parameter specifies the frame at which the midpoint level occurs. It allows you to control the timing of the midpoint in the fade transition. The specific range and default value are not provided in the context.

Create Fade Mask Output Parameters:

MASK

The output of the CreateFadeMask node is a mask tensor that represents the fade effect. This mask can be used in various applications where a gradient-based transparency effect is needed. The mask tensor will have the same dimensions as specified by the width and height input parameters and will contain the fade transition as defined by the other input parameters.

Create Fade Mask Usage Tips:

  • To create a smooth fade effect, ensure that the frames parameter is set to a sufficiently high value to allow for a gradual transition.
  • Experiment with the start_level, midpoint_level, and end_level parameters to achieve the desired opacity levels at different points in the fade.
  • Use the invert parameter to quickly switch between a fade-in and fade-out effect without changing other settings.

Create Fade Mask Common Errors and Solutions:

"Invalid frame count"

  • Explanation: The frames parameter is set to a value outside the allowed range.
  • Solution: Ensure that the frames parameter is set between 0 and 255.

"Width or height out of bounds"

  • Explanation: The width or height parameter is set to a value outside the allowed range.
  • Solution: Ensure that the width and height parameters are set between 16 and 4096.

"Interpolation method not supported"

  • Explanation: The interpolation parameter is set to an unsupported value.
  • Solution: Check the available options for the interpolation parameter and select a valid method.

"Opacity levels out of range"

  • Explanation: The start_level, midpoint_level, or end_level parameters are set to values outside the allowed range.
  • Solution: Ensure that the opacity levels are set within the valid range specified in the node documentation.

Create Fade Mask Related Nodes

Go back to the extension to check out more related nodes.
KJNodes for ComfyUI
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.