Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate customizable masks with shapes like circles, squares, and triangles, including animated options for dynamic effects.
The CreateShapeMask
node is designed to generate masks or batches of masks with specified shapes such as circles, squares, or triangles. This node is particularly useful for creating precise and customizable masks for various artistic and design purposes. By defining the shape, size, and location parameters, you can create masks that fit your specific needs. The node also allows for the creation of animated masks by adjusting the grow value, which changes the size of the shape over multiple frames. This flexibility makes it a powerful tool for AI artists looking to add dynamic and intricate masking effects to their projects.
This parameter defines the shape of the mask to be created. You can choose from three options: circle
, square
, or triangle
. The default value is circle
.
Specifies the number of frames for which the mask will be generated. This is particularly useful for creating animated masks. The minimum value is 1, the maximum is 4096, and the default is 1.
Defines the x-coordinate for the center location of the shape within the frame. The minimum value is 0, the maximum is 4096, and the default is 256.
Defines the y-coordinate for the center location of the shape within the frame. The minimum value is 0, the maximum is 4096, and the default is 256.
This parameter specifies the amount by which the shape will grow on each frame, allowing for the creation of animated masks. The minimum value is -512, the maximum is 512, and the default is 0.
Sets the width of the frame in which the mask will be created. The minimum value is 16, the maximum is 4096, and the default is 512.
Sets the height of the frame in which the mask will be created. The minimum value is 16, the maximum is 4096, and the default is 512.
Defines the width of the shape to be created. The minimum value is 8, the maximum is 4096, and the default is 128.
Defines the height of the shape to be created. The minimum value is 8, the maximum is 4096, and the default is 128.
This output parameter provides the generated mask based on the specified input parameters. The mask can be used in various artistic and design applications to isolate or highlight specific areas of an image.
This output parameter provides the inverted version of the generated mask. This can be useful for creating complementary effects or for use in different masking scenarios where the inverse of the original mask is needed.
grow
parameter to change the size of the shape over multiple frames.location_x
and location_y
parameters to precisely position the shape within the frame.shape_width
and shape_height
values to achieve the desired mask size and proportions.circle
, square
, triangle
).shape
parameter is set to one of the accepted values.frame_width
or frame_height
values are outside the acceptable range (16 to 4096).frame_width
and frame_height
parameters to be within the specified range.shape_width
or shape_height
values are outside the acceptable range (8 to 4096).shape_width
and shape_height
parameters to be within the specified range.location_x
or location_y
values are outside the acceptable range (0 to 4096).location_x
and location_y
parameters are within the specified range.© Copyright 2024 RunComfy. All Rights Reserved.