Layer mask with a specific colour

I am trying to do this:
One layer (layer 1) should be masked by another layer (layer 2). I can do that with ‘Layer mask fx on layer 1’.

But I only want the red colours in layer 2 to reveal layer 1. I can’t wrap my head around how to this.

Can anyone help?
Br, Donleavy

Use the chroma mask on layer2 , set the red color. “Layer fx → Masking → Chroma Mask”

1 Like

It’s kind of working, but not quite. I tried this before, but forgot the ‘applyAlpha button and I was confused by the fact that white always masks.

Layer 1 FX: Layer mask from layer 2
Layer 2 FX: Chroma mask with red colour.

Green always masks in this setup, for some reason. I don’t quite understand.

chroma-mask 3

Does anyone know what the problem is? I don’t get it.

Here is my approach:
Conceptually I think your stumbling block is not dedicating a source layer to Only be the Mask, and “Hide” it.
And then you call/apply/refer to that Masking layer in your ForeGround(FG) Layer.
You can duplicate said origin source layer to have it be the mask and the FG layer if need be, but those are two distinct layers.

See attached project.
Notes:
Basic Chroma Mask.

Most of the work happens in the Mask layer. I’m choosing red to be the Masking color form the Default Color Bars source. In the FX options you can see Chroma determines what is the mask. If Color Replacement is used as a Mask then the issue is that Whites also conatain some aspect of RGB, consequently Whites and Reds become the masking color (even greys actually). This could be a good thing if you want two colors to be a mask since White and Red are both letting through a layer, aka being the Alpha. The benifits of Chroma Mask is that White is treated as a color and blocked.

The LFO is just to animate the FG.

BG is also trivially replaceable or removed.


Basic_ChromaMasking.vdmx6.zip (45.2 KB)

1 Like