ComfyUI Nodes
mask
Mask Composite

Mask Composite

comfyUI节点-MaskComposite|遮罩混合

Documentation

  • Class name: MaskComposite
  • Category: mask
  • Output node: False

This node specializes in combining two mask inputs through a variety of operations such as addition, subtraction, and logical operations, to produce a new, modified mask. It abstractly handles the manipulation of mask data to achieve complex masking effects, serving as a crucial component in mask-based image editing and processing workflows.

Input types

ParameterComfy dtypeDescription
destinationMASKThe primary mask that will be modified based on the operation with the source mask. It plays a central role in the composite operation, acting as the base for modifications.
sourceMASKThe secondary mask that will be used in conjunction with the destination mask to perform the specified operation, influencing the final output mask.
xINTThe horizontal offset at which the source mask will be applied to the destination mask, affecting the positioning of the composite result.
yINTThe vertical offset at which the source mask will be applied to the destination mask, affecting the positioning of the composite result.
operationCOMBO[STRING]Specifies the type of operation to apply between the destination and source masks, such as 'add', 'subtract', or logical operations, determining the nature of the composite effect.

Output types

ParameterComfy dtypeDescription
maskMASKThe resulting mask after applying the specified operation between the destination and source masks, representing the composite outcome.