Visit ComfyUI Online for ready-to-use ComfyUI environment
Versatile node for generating masks with specified shapes along a path, customizable dimensions and multiple shape options.
CreateShapeMaskOnPath is a versatile node designed to generate masks or batches of masks with specified shapes along a defined path. This node is particularly useful for AI artists looking to create complex masking patterns that follow a specific trajectory. By defining the shape, size, and coordinates, you can create intricate designs that can be used in various artistic applications. The node allows for customization of the mask's dimensions and can handle multiple shapes such as circles, squares, and triangles. This flexibility makes it an essential tool for generating dynamic and visually appealing masks.
This parameter defines the shape of the mask to be created. You can choose from three options: circle
, square
, and triangle
. The default shape is circle
. The selected shape will be used to generate the mask along the specified path.
This parameter specifies the path coordinates where the mask shapes will be placed. It is a required input and must be provided as a string. The coordinates define the center locations for the shapes, allowing you to create a path for the mask.
This parameter sets the width of the frame in which the mask will be created. The default value is 512 pixels, with a minimum of 16 pixels and a maximum of 4096 pixels. Adjusting this value will change the overall width of the generated mask.
This parameter sets the height of the frame in which the mask will be created. The default value is 512 pixels, with a minimum of 16 pixels and a maximum of 4096 pixels. Adjusting this value will change the overall height of the generated mask.
This parameter defines the width of the individual shapes in the mask. The default value is 128 pixels, with a minimum of 8 pixels and a maximum of 4096 pixels. This value determines the horizontal size of each shape in the mask.
This parameter defines the height of the individual shapes in the mask. The default value is 128 pixels, with a minimum of 8 pixels and a maximum of 4096 pixels. This value determines the vertical size of each shape in the mask.
This optional parameter allows you to scale the size of the shapes in the mask. The default value is 1.0, and it can be adjusted to increase or decrease the size of the shapes proportionally. This parameter is useful for creating masks with varying shape sizes.
This output parameter provides the generated mask based on the specified input parameters. The mask will contain the shapes placed along the defined path, and it can be used in various artistic applications.
This output parameter provides an inverted version of the generated mask. The inverted mask can be useful for creating complementary designs or for use in different masking techniques.
circle
, square
, triangle
) to create unique masking patterns.coordinates
parameter to define complex paths for the mask shapes, allowing for intricate designs.frame_width
and frame_height
parameters to fit the mask within your desired canvas size.size_multiplier
parameter to create masks with varying shape sizes for added visual interest.shape_width
and shape_height
parameters to be within the minimum and maximum values (8 to 4096 pixels).frame_width
and frame_height
parameters to be within the minimum and maximum values (16 to 4096 pixels).© Copyright 2024 RunComfy. All Rights Reserved.