ComfyUI > Nodes > ComfyUI-RvTools_v2 > Mask Switch

ComfyUI Node: Mask Switch

Class Name

Mask Switch [RvTools]

Category
🫦 RvTools II/ Switches
Author
r-vage (Account age: 317days)
Extension
ComfyUI-RvTools_v2
Latest Updated
2026-03-27
Github Stars
0.02K

How to Install ComfyUI-RvTools_v2

Install this extension via the ComfyUI Manager by searching for ComfyUI-RvTools_v2
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-RvTools_v2 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

Mask Switch Description

Facilitates dynamic selection between two mask inputs based on conditions for flexible mask application.

Mask Switch [RvTools]:

The Mask Switch [RvTools] node is designed to facilitate the dynamic selection between two mask inputs based on a specified condition. This node is particularly useful in scenarios where you need to toggle between different mask layers or configurations during the creative process. By providing a simple mechanism to switch between two inputs, it enhances flexibility and control over the mask application, allowing you to experiment with different visual outcomes without manually adjusting the inputs each time. This capability is essential for AI artists who wish to streamline their workflow and focus on the creative aspects of their projects.

Mask Switch [RvTools] Input Parameters:

Input

The Input parameter is an integer that determines which mask input will be selected and returned by the node. It accepts values of either 1 or 2, with a default value of 1. When set to 1, the node outputs the first mask input (input1), and when set to 2, it outputs the second mask input (input2). This parameter is crucial for controlling the node's behavior and allows you to easily switch between different mask configurations.

input1

The input1 parameter is an optional mask input that the node can select based on the Input parameter. It is a required input when the Input parameter is set to 1, meaning that the node will output this mask if selected. This parameter allows you to provide the first mask option for the node to choose from.

input2

The input2 parameter is another optional mask input that the node can select based on the Input parameter. It is a required input when the Input parameter is set to 2, meaning that the node will output this mask if selected. This parameter allows you to provide the second mask option for the node to choose from.

Mask Switch [RvTools] Output Parameters:

mask

The mask output parameter is the result of the node's execution, which is the selected mask based on the Input parameter. This output is crucial as it determines the mask that will be used in subsequent processes or nodes. The ability to dynamically switch between masks allows for greater flexibility and experimentation in your creative workflow.

Mask Switch [RvTools] Usage Tips:

  • Use the Input parameter to quickly toggle between different mask configurations, allowing you to compare and contrast their effects without manually changing inputs.
  • Ensure that both input1 and input2 are properly configured and available, as the node requires these inputs to function correctly when selected.

Mask Switch [RvTools] Common Errors and Solutions:

Missing input1 or input2

  • Explanation: This error occurs when the node is set to select a mask input that has not been provided.
  • Solution: Ensure that both input1 and input2 are connected and available for selection based on the Input parameter.

Invalid Input value

  • Explanation: This error arises when the Input parameter is set to a value outside the allowed range of 1 or 2.
  • Solution: Adjust the Input parameter to either 1 or 2 to ensure the node functions correctly.

Mask Switch Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-RvTools_v2
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.

Mask Switch