ComfyUI > Nodes > comfy_Pond_Nodes > 🐳多遮罩运算

ComfyUI Node: 🐳多遮罩运算

Class Name

MaskMultiBooleanNode

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 sequential boolean operations on multiple masks for complex image processing tasks.

🐳多遮罩运算:

The MaskMultiBooleanNode is designed to perform sequential boolean operations on multiple masks, allowing you to combine, intersect, or differentiate between various mask layers in a flexible and efficient manner. This node is particularly useful in scenarios where complex mask manipulations are required, such as in image processing or AI art creation, where multiple layers need to be combined or modified based on specific criteria. By supporting operations like intersection, union, difference, and exclusive or (XOR), this node provides a comprehensive toolkit for mask manipulation, enabling you to achieve intricate masking effects with ease. The node's ability to handle multiple masks in a single operation streamlines workflows and enhances productivity, making it an essential tool for artists and developers working with layered visual content.

🐳多遮罩运算 Input Parameters:

基准遮罩

This parameter represents the base mask upon which subsequent boolean operations will be performed. It serves as the starting point for all operations and is crucial for determining the initial mask configuration. The base mask is required and does not have a default value, as it is the primary input for the node's operations.

遮罩2

The second mask to be used in the boolean operation with the base mask. This mask is required and allows you to perform the first boolean operation, such as intersection or union, with the base mask. It is essential for defining the relationship between the first two masks in the sequence.

运算1

This parameter specifies the type of boolean operation to be performed between the base mask and 遮罩2. Options include "交集" (intersection), "并集" (union), "差集" (difference), and "异或" (exclusive or). The default operation is "交集" (intersection). This choice determines how the two masks will be combined or modified.

遮罩3

An optional third mask that can be included in the sequence of boolean operations. If provided, it allows for further manipulation of the result obtained from the first operation. This mask is optional and can be used to add complexity to the mask operations.

运算2

This parameter defines the boolean operation to be performed between the result of the first operation and 遮罩3. Similar to 运算1, it offers options like "交集", "并集", "差集", and "异或", with "交集" as the default. It controls how the third mask interacts with the existing result.

遮罩4

An optional fourth mask that can be used for additional boolean operations. This mask is optional and provides further flexibility in defining complex mask relationships and operations.

运算3

Specifies the boolean operation to be performed between the result of the second operation and 遮罩4. It follows the same options as 运算1 and 运算2, with "交集" as the default. This parameter allows for the final manipulation of the mask sequence.

对齐方式

This parameter determines the alignment method for the masks involved in the operations. Options include "居中对齐" (center alignment), "左对齐" (left alignment), "右对齐" (right alignment), "上对齐" (top alignment), and "下对齐" (bottom alignment). The default is "居中对齐". Proper alignment ensures that masks are correctly positioned relative to each other during operations.

阈值

The threshold value used to determine the binary conversion of mask values during operations. It ranges from 0.0 to 1.0, with a default of 0.5. This parameter is crucial for defining which areas of the mask are considered active or inactive during boolean operations.

🐳多遮罩运算 Output Parameters:

最终结果

This output represents the final mask obtained after performing all specified boolean operations on the input masks. It is the culmination of the sequential operations and reflects the combined or modified state of all involved masks.

运算序列

A string output that provides a detailed sequence of the operations performed. This output is useful for understanding the steps taken during the mask manipulation process and can serve as a reference for replicating or modifying the operations.

🐳多遮罩运算 Usage Tips:

  • To achieve complex mask effects, carefully plan the sequence of operations and the order of masks. Start with a clear base mask and progressively add or modify masks using the available operations.
  • Utilize the alignment options to ensure masks are correctly positioned relative to each other, especially when dealing with masks of different sizes or orientations.

🐳多遮罩运算 Common Errors and Solutions:

"Invalid mask input"

  • Explanation: This error occurs when one or more of the mask inputs are not provided or are in an incorrect format.
  • Solution: Ensure that all required mask inputs are correctly specified and in the expected format before executing the node.

"Unsupported operation type"

  • Explanation: This error indicates that an invalid operation type was selected for one of the boolean operations.
  • Solution: Verify that the operation types selected for 运算1, 运算2, and 运算3 are among the supported options: "交集", "并集", "差集", or "异或".

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