Visit ComfyUI Online for ready-to-use ComfyUI environment
Convert PNG rectangles to masks with intensity and blur settings for precise control, simplifying mask creation for AI artists.
The PngRectanglesToMaskList
node is designed to convert a list of PNG rectangles into a mask with specified intensity and blur settings. This node is particularly useful for AI artists who need to create masks directly from rectangle data, allowing for precise control over the mask's appearance. By adjusting parameters such as intensity and blur, you can achieve a variety of effects, from solid masks to more nuanced, blurred edges. This node simplifies the process of mask creation, making it accessible even to those without a deep technical background.
This parameter takes a list of PNG rectangles, which is typically generated from the Create PNG Mask
function. The list contains the rectangle data that will be used to create the mask. This input is essential as it defines the areas that will be masked.
The Intenisity
parameter controls the intensity of the mask. It accepts a floating-point value between 0.0 and 1.0, with a default value of 1.0. A value of 1.0 results in a solid mask, while lower values produce a more transparent mask. Adjusting this parameter allows you to fine-tune the opacity of the mask.
The Blur
parameter determines the amount of blur applied to the mask. It accepts a floating-point value starting from 0.0, with a default value of 0.0. A value of 0.0 results in a solid mask with sharp edges, while higher values create a more blurred, softer edge. This parameter is useful for creating masks with gradual transitions.
The Start_At_Index
parameter specifies the starting index of the rectangle list from which the mask creation should begin. It accepts an integer value with a default of 0. This parameter allows you to control which part of the rectangle list is used, providing flexibility in mask creation.
The Overlap
parameter determines whether to combine the current mask with previous or next masks. It accepts three options: Previous
, Next
, or None
. This parameter is useful for creating complex masks by combining multiple rectangles.
The Overlap_Count
parameter specifies the number of previous or next masks to combine with the current mask. It accepts an integer value and works in conjunction with the Overlap
parameter. This allows for more intricate mask designs by layering multiple masks.
The mask
output is the final mask generated from the specified PNG rectangles, intensity, and blur settings. This mask can be used in various applications, such as image editing or AI art generation, to define areas of interest or apply effects selectively.
Intenisity
and Blur
parameters to achieve the desired mask effect. Higher intensity values create more opaque masks, while higher blur values soften the edges.Start_At_Index
parameter to focus on specific parts of your rectangle list, allowing for targeted mask creation.Overlap
and Overlap_Count
parameters to create complex and layered mask effects.Start_At_Index
or Overlap_Count
parameters reference an index outside the bounds of the PngRectangles
list.Start_At_Index
and Overlap_Count
parameters are within the valid range of the PngRectangles
list.Intenisity
parameter is set to a value outside the range of 0.0 to 1.0.Intenisity
parameter to a value within the valid range (0.0 to 1.0).Blur
parameter is set to a negative value.Blur
parameter is set to a non-negative value.Overlap
parameter is set to a value other than Previous
, Next
, or None
.Overlap
parameter to one of the valid options: Previous
, Next
, or None
.© Copyright 2024 RunComfy. All Rights Reserved.