ComfyUI > Nodes > comfy_Pond_Nodes > 🐳遮罩切换

ComfyUI Node: 🐳遮罩切换

Class Name

遮罩切换

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

The 遮罩切换 node enables easy switching between two masks, enhancing flexibility in creative workflows.

🐳遮罩切换:

The 遮罩切换 node is designed to provide a simple yet effective way to switch between two different masks based on user selection. This node is particularly useful in scenarios where you need to dynamically choose between two masking options during your creative process. By allowing you to select either mask1 or mask2, this node offers flexibility and control over the masking process, enabling you to tailor the output to your specific artistic needs. The primary goal of this node is to streamline the workflow by providing an easy mechanism to toggle between masks without the need for complex configurations or manual adjustments.

🐳遮罩切换 Input Parameters:

mask1

mask1 is the first mask option available for selection. It serves as one of the two potential outputs that you can choose from. The mask is expected to be in a format compatible with the node's processing requirements, typically a tensor representing the mask's data. This parameter does not have a default value as it is required to provide a valid mask for the node to function.

mask2

mask2 is the second mask option available for selection. Similar to mask1, it is a required input that represents an alternative mask you can choose to apply. This parameter allows you to provide a different mask that can be toggled with mask1, offering versatility in your masking operations.

select_mask

select_mask is a critical parameter that determines which mask will be used as the output. It accepts two options: "mask1" or "mask2". By selecting one of these options, you instruct the node to output the corresponding mask. This parameter is essential for controlling the node's behavior and ensuring that the desired mask is applied in your workflow.

🐳遮罩切换 Output Parameters:

MASK

The output of the 遮罩切换 node is a single MASK, which corresponds to the mask selected via the select_mask parameter. This output is crucial as it represents the active mask that will be used in subsequent processing steps. The ability to switch between masks dynamically allows for greater flexibility and adaptability in your creative projects.

🐳遮罩切换 Usage Tips:

  • Use the select_mask parameter to quickly toggle between different masking options, allowing you to experiment with various effects and outcomes without altering the underlying data.
  • Ensure that both mask1 and mask2 are properly formatted and compatible with the node's requirements to avoid processing errors and achieve the desired results.

🐳遮罩切换 Common Errors and Solutions:

Invalid mask format

  • Explanation: This error occurs when the provided masks (mask1 or mask2) are not in the expected format or contain incompatible data types.
  • Solution: Verify that both masks are correctly formatted and compatible with the node's processing requirements. Ensure they are tensors representing valid mask data.

Selection parameter not set

  • Explanation: This error arises when the select_mask parameter is not specified, leading to ambiguity in mask selection.
  • Solution: Always set the select_mask parameter to either "mask1" or "mask2" to ensure the node outputs the correct mask.

🐳遮罩切换 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.

🐳遮罩切换