Visit ComfyUI Online for ready-to-use ComfyUI environment
Perform mathematical operations on masks for blending and manipulation, enhancing visual effects with precision and flexibility.
The MaskMath node is designed to perform mathematical operations on masks, allowing you to combine two masks using various methods such as addition, subtraction, multiplication, and more. This node is particularly useful for AI artists who need to manipulate and blend masks to achieve specific visual effects or to refine mask boundaries. By leveraging different combination methods, you can control how two masks interact, providing greater flexibility and precision in your creative process. The MaskMath node simplifies complex mask operations, making it easier to achieve the desired results without requiring extensive technical knowledge.
This parameter represents the second mask that will be combined with the primary mask. It is essential for the combination process, as it provides the additional mask data needed for the mathematical operations.
This parameter determines the method used to combine the two masks. The available options are add
, subtract
, multiply
, minimum
, and maximum
. Each method offers a different way of blending the masks:
add
: Adds the values of the two masks.subtract
: Subtracts the values of the second mask from the first.multiply
: Multiplies the values of the two masks.minimum
: Takes the minimum value from the two masks.maximum
: Takes the maximum value from the two masks.This parameter controls the intensity of the combination method applied to the masks. It is a float value that adjusts the influence of the second mask on the first. The strength parameter allows for fine-tuning the blending effect, providing more control over the final result.
The output of the MaskMath node is a single combined mask. This mask is the result of applying the specified combination method and strength to the two input masks. The output mask can be used in subsequent nodes or processes to achieve the desired visual effect.
<combination_method>
add
, subtract
, multiply
, minimum
, or maximum
.<frame_index>
is out of bounds for axis 0 with size <size>
© Copyright 2024 RunComfy. All Rights Reserved.