🐳遮罩对齐扩展(V2):
The MaskSizeAlignAdvanced node is a sophisticated tool designed to align multiple masks to a base mask within the ComfyUI environment. This node is particularly beneficial for AI artists who need to ensure that various mask elements are precisely aligned according to a specified alignment method. By offering advanced alignment capabilities, this node allows you to align up to five masks simultaneously, ensuring that each mask is positioned accurately relative to a base mask. The node supports various alignment options, such as centering, left, right, top, bottom, and corner alignments, providing flexibility in how masks are arranged. This functionality is crucial for creating complex compositions where precise mask placement is essential. The node also includes options for offsetting the alignment along the X and Y axes, giving you additional control over the final positioning of the masks.
🐳遮罩对齐扩展(V2) Input Parameters:
基准遮罩
This parameter represents the base mask to which other masks will be aligned. It serves as the reference point for all alignment operations, ensuring that the other masks are positioned relative to this base mask.
遮罩2
This is the second mask that will be aligned to the base mask. The alignment method chosen will determine how this mask is positioned in relation to the base mask.
对齐方式
This parameter specifies the alignment method to be used. Options include "居中对齐" (center alignment), "左对齐" (left alignment), "右对齐" (right alignment), "上对齐" (top alignment), "下对齐" (bottom alignment), "左上对齐" (top-left alignment), "右上对齐" (top-right alignment), "左下对齐" (bottom-left alignment), and "右下对齐" (bottom-right alignment). The default is "居中对齐" (center alignment).
遮罩3
An optional third mask that can be aligned to the base mask. This allows for more complex compositions involving multiple masks.
遮罩4
An optional fourth mask that can be aligned to the base mask, providing further flexibility in mask arrangement.
遮罩5
An optional fifth mask that can be aligned to the base mask, enabling the alignment of multiple masks in a single operation.
X轴偏移
This integer parameter allows you to specify an offset along the X-axis for the alignment. The default value is 0, with a range from -1024 to 1024, allowing for fine-tuning of the mask's horizontal position.
Y轴偏移
This integer parameter allows you to specify an offset along the Y-axis for the alignment. The default value is 0, with a range from -1024 to 1024, enabling precise control over the mask's vertical position.
🐳遮罩对齐扩展(V2) Output Parameters:
MASK
The primary output is a series of aligned masks. Each mask is adjusted according to the specified alignment method and any additional offsets, ensuring that they are correctly positioned relative to the base mask.
🐳遮罩对齐扩展(V2) Usage Tips:
- To achieve precise alignment, carefully choose the
对齐方式that best suits your composition needs. For example, use "居中对齐" for symmetrical designs or "左上对齐" for a more structured layout. - Utilize the
X轴偏移andY轴偏移parameters to make minor adjustments to the mask positions, which can be particularly useful when dealing with intricate designs that require exact placement.
🐳遮罩对齐扩展(V2) Common Errors and Solutions:
"Invalid mask dimensions"
- Explanation: This error occurs when the input masks have incompatible dimensions or are not properly formatted.
- Solution: Ensure that all input masks are correctly formatted and have compatible dimensions. Check that they are in the expected format and size before inputting them into the node.
"Alignment method not recognized"
- Explanation: This error indicates that an invalid alignment method was specified.
- Solution: Verify that the
对齐方式parameter is set to one of the supported options. Double-check the spelling and ensure it matches one of the predefined alignment methods.
