Keymix

Keymix layers two images together using a specified Roto shape or image as a mask. It copies input src0 to input src1 where the mask is non-black. This follows the formula Aa + B(1-a). The resulting image contains no alpha channel.

This node has an equivalent in Nuke.

Inputs and Controls

Connection Type

Connection Name

Function

Input

src0

The image sequence to merge with input src1. By default, this input is copied to input src1 only where the mask is non-black.

src1 The image sequence to merge with input src0.
mask The image to use as a mask. By default, the effect of input src0 is limited to the non-black areas of the mask.

Control (UI)

Knob (Scripting)

Default Value

Function

Type name

TypeName

Keymix

The node type.

Enabled Enabled ticked If unchecked, this node will be omitted from the compiled image processing graph. Any incoming connections will be forwarded to the first output port, if any.
Label Label N/A An optional label to display on the node.
Parameters

Reset parameters to default value using the reset icon:

MaskChannel MaskChannel A The channel to use as a mask. By default, the effect of input src0 is limited to the non-black areas of this channel.
MaskInvert MaskInvert unticked Inverts the use of the mask channel so that the effect of input src0 is limited to the non-white areas of the mask.
CopyR CopyR ticked Copy on the Red channel
CopyG CopyG ticked Copy on the green channel
CopyB CopyB ticked Copy on the blue channel
CopyA CopyA ticked Copy on the alpha channel
Mix Mix 1.000 Dissolves between the original src1 input at 0 and the full Keymix effect at 1.