Nodes/SF EXR/SF Merge
ComfyUI Node

SF Merge

Merge A onto B like Nuke's Merge. A and B can each be an EXR or an image; the output is the same type as B. With an EXR, the chosen layer is merged and every other layer passes through. Colour is treated as premultiplied by its alpha. Images bring alpha as a 4th channel (use Join Image with Alpha); RGB images count as opaque.

By shanef3d·Created 23 days ago·Updated 20 days ago· 0
SF Merge
  • A
  • B
  • mask
  • output
  • mask
◄operationover►
◄opacity1.00►
◄bboxunion►
◄layerauto►
CategorySF EXR

Inputs (7)

NameTypeDefaultDescription
operationCOMBOover22 options: over, under, plus, minus, from, multiply, +16
opacityFLOAT1.000–1—
bboxCOMBOunionWhere the result exists; outside it is black and transparent. An EXR's box is its data window, an image's is the whole frame.
layerCOMBOautoEXR layer to merge; 'auto' is the beauty.
AoptIMAGE,SF_EXRUnconnected = black and transparent, so 'over' passes B through.
BoptCOMFY_MATCHTYPE_V3The background. Required; the output is the same type as B.
maskoptMASKLimits the merge; outside it B shows through.

Outputs (2)

NameTypeDescription
outputCOMFY_MATCHTYPE_V3—
maskMASKThe merged alpha.