latent
Latent Composite Masked

Latent Composite Masked

comfyUI节点-LatentCompositeMasked|Latent遮罩复合

Documentation

  • Class name: LatentCompositeMasked
  • Category: latent
  • Output node: False

The LatentCompositeMasked node is designed for blending two latent representations together at specified coordinates, optionally using a mask for more controlled compositing. This node enables the creation of complex latent images by overlaying parts of one image onto another, with the ability to resize the source image for a perfect fit.

Input types

ParameterComfy dtypeDescription
destinationLATENTThe latent representation onto which another latent representation will be composited. Acts as the base layer for the composite operation.
sourceLATENTThe latent representation to be composited onto the destination. This source layer can be resized and positioned according to the specified parameters.
xINTThe x-coordinate in the destination latent representation where the source will be placed. Allows for precise positioning of the source layer.
yINTThe y-coordinate in the destination latent representation where the source will be placed, enabling accurate overlay positioning.
resize_sourceBOOLEANA boolean flag indicating whether the source latent representation should be resized to match the destination's dimensions before compositing.
maskMASKAn optional mask that can be used to control the blending of the source onto the destination. The mask defines which parts of the source will be visible in the final composite.

Output types

ParameterComfy dtypeDescription
latentLATENTThe resulting latent representation after compositing the source onto the destination, potentially using a mask for selective blending.