Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate gradient-based fade masks for smooth opacity transitions, ideal for video/image effects.
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.
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.
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.
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.
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
.
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.
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.
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.
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.
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.
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.
frames
parameter is set to a sufficiently high value to allow for a gradual transition.start_level
, midpoint_level
, and end_level
parameters to achieve the desired opacity levels at different points in the fade.invert
parameter to quickly switch between a fade-in and fade-out effect without changing other settings.frames
parameter is set to a value outside the allowed range.frames
parameter is set between 0 and 255.width
or height
parameter is set to a value outside the allowed range.width
and height
parameters are set between 16 and 4096.interpolation
parameter is set to an unsupported value.interpolation
parameter and select a valid method.start_level
, midpoint_level
, or end_level
parameters are set to values outside the allowed range.© Copyright 2024 RunComfy. All Rights Reserved.