ComfyUI > Nodes > comfy_Pond_Nodes > 🐳遮罩对齐扩展(V2)

ComfyUI Node: 🐳遮罩对齐扩展(V2)

Class Name

MaskSizeAlignAdvanced

Category
🐳Pond/mask
Author
Pondowner857 (Account age: 730days)
Extension
comfy_Pond_Nodes
Latest Updated
2026-01-28
Github Stars
0.04K

How to Install comfy_Pond_Nodes

Install this extension via the ComfyUI Manager by searching for comfy_Pond_Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter comfy_Pond_Nodes in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🐳遮罩对齐扩展(V2) Description

Aligns up to five masks to a base mask with advanced alignment and offset options in ComfyUI.

🐳遮罩对齐扩展(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轴偏移 and Y轴偏移 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.

🐳遮罩对齐扩展(V2) Related Nodes

Go back to the extension to check out more related nodes.
comfy_Pond_Nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.