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.
SF Merge
- A
- B
- mask
- output
- mask
◄operationover►
◄opacity1.00►
◄bboxunion►
◄layerauto►
CategorySF EXR
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| operation | COMBO | over | 22 options: over, under, plus, minus, from, multiply, +16 |
| opacity | FLOAT | 1.000–1 | — |
| bbox | COMBO | union | Where the result exists; outside it is black and transparent. An EXR's box is its data window, an image's is the whole frame. |
| layer | COMBO | auto | EXR layer to merge; 'auto' is the beauty. |
| Aopt | IMAGE,SF_EXR | Unconnected = black and transparent, so 'over' passes B through. | |
| Bopt | COMFY_MATCHTYPE_V3 | The background. Required; the output is the same type as B. | |
| maskopt | MASK | Limits the merge; outside it B shows through. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| output | COMFY_MATCHTYPE_V3 | — |
| mask | MASK | The merged alpha. |