ComfyUI > Nodes > comfy_Pond_Nodes > 🐳遮罩运算

ComfyUI Node: 🐳遮罩运算

Class Name

MaskAlignBooleanNode

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

🐳遮罩运算 Description

Performs boolean operations on masks with alignment options for precise, seamless compositions.

🐳遮罩运算:

The MaskAlignBooleanNode is designed to perform boolean operations on masks while aligning them according to specified criteria. This node is particularly useful in scenarios where you need to combine or manipulate multiple masks with precision, ensuring that they are aligned in a specific manner before the operation is applied. The node supports various alignment options such as center, left, right, top, bottom, and their combinations, allowing for flexible positioning of masks relative to each other. By aligning masks before performing boolean operations like intersection, union, difference, or exclusive or, you can achieve more accurate and visually appealing results. This node is essential for AI artists who want to create complex compositions by merging different mask elements seamlessly.

🐳遮罩运算 Input Parameters:

基准遮罩

This parameter represents the base mask that serves as the reference point for alignment and boolean operations. It is crucial as it determines the initial position and size against which other masks will be aligned and processed. The base mask should be chosen carefully to ensure that the subsequent operations yield the desired results.

遮罩2

This is the second mask that will be aligned and combined with the base mask. The alignment and boolean operation applied to this mask in relation to the base mask will significantly impact the final output. It is important to select a mask that complements the base mask to achieve the intended visual effect.

运算1

This parameter specifies the type of boolean operation to be performed between the base mask and the second mask. Options include intersection, union, difference, and exclusive or. The choice of operation will determine how the masks are combined, affecting the visibility and interaction of the mask elements in the final output.

🐳遮罩运算 Output Parameters:

result_mask

The result_mask is the final output after the boolean operation and alignment have been applied to the input masks. It represents the combined effect of the masks based on the specified operation and alignment settings. This output is crucial for further processing or as a final visual element in your composition.

aligned_mask_a

This output provides the aligned version of the base mask. It shows how the base mask has been adjusted in position and size to match the alignment criteria specified. This output is useful for understanding the transformation applied to the base mask before the boolean operation.

aligned_mask_b

Similar to aligned_mask_a, this output shows the aligned version of the second mask. It reflects the adjustments made to the second mask to ensure it aligns correctly with the base mask according to the chosen alignment settings. This output helps in visualizing the pre-operation state of the second mask.

🐳遮罩运算 Usage Tips:

  • Experiment with different alignment options to see how they affect the final composition. Aligning masks in various ways can lead to unique and creative results.
  • Use the intersection operation to find common areas between masks, which can be useful for highlighting overlapping regions in your artwork.

🐳遮罩运算 Common Errors and Solutions:

Misaligned Masks

  • Explanation: The masks may not align as expected due to incorrect alignment settings.
  • Solution: Double-check the alignment parameters and ensure they are set according to your desired outcome. Adjust the alignment settings to achieve the correct positioning.

Unexpected Boolean Results

  • Explanation: The boolean operation may not produce the expected result if the masks are not properly aligned or if the wrong operation is selected.
  • Solution: Verify that the masks are correctly aligned before applying the boolean operation. Ensure that the chosen operation (intersection, union, difference, exclusive or) is appropriate for the intended effect.

🐳遮罩运算 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.

🐳遮罩运算