Visit ComfyUI Online for ready-to-use ComfyUI environment
Dynamically select between mask inputs based on boolean condition for flexible AI art workflows.
The Switch mask [Crystools] node is designed to dynamically select between two different mask inputs based on a boolean condition. This node is particularly useful in scenarios where you need to apply different masks depending on a specific condition, allowing for more flexible and adaptive workflows in your AI art projects. By leveraging this node, you can streamline your process and ensure that the appropriate mask is applied automatically, enhancing the efficiency and effectiveness of your creative endeavors.
This parameter accepts a mask that will be used if the boolean condition is true. The mask should be in the format expected by the node, typically a binary or grayscale image where the mask is applied.
This parameter accepts a mask that will be used if the boolean condition is false. Similar to the on_true
parameter, this mask should be in the appropriate format for the node to process.
This parameter is a boolean value that determines which mask to use. If set to true, the on_true
mask will be selected; if set to false, the on_false
mask will be selected. The default value is true.
The output parameter mask
is the selected mask based on the boolean condition. This output will be either the on_true
or on_false
mask, depending on the value of the boolean parameter. The output mask can then be used in subsequent nodes or processes within your workflow.
on_true
and on_false
masks are pre-processed and in the correct format to avoid any issues during execution.on_true
or on_false
) is missing or not properly connected.on_true
and on_false
masks are correctly connected and available for the node to process.© Copyright 2024 RunComfy. All Rights Reserved.