Skip to main content
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.

Inputs

ParameterDescriptionData Type
destinationThe latent representation onto which another latent representation will be composited. Acts as the base layer for the composite operation.LATENT
sourceThe latent representation to be composited onto the destination. This source layer can be resized and positioned according to the specified parameters.LATENT
xThe x-coordinate in the destination latent representation where the source will be placed. Allows for precise positioning of the source layer.INT
yThe y-coordinate in the destination latent representation where the source will be placed, enabling accurate overlay positioning.INT
resize_sourceA boolean flag indicating whether the source latent representation should be resized to match the destination’s dimensions before compositing.BOOLEAN
maskAn 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.MASK

Outputs

ParameterDescriptionData Type
latentThe resulting latent representation after compositing the source onto the destination, potentially using a mask for selective blending.LATENT
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub