Skip to main content
Participating Frequently
March 26, 2023
Question

Keylight and Masks Workflow Avoid Spill

  • March 26, 2023
  • 2 replies
  • 1567 views

I am trying to key out a green sock that has two distinct shades of green. Can someone send me in the right direction re: how to apply Keylight to both areas?

 

I know I need to use masks, the pen tool, and pre-comps, but not sure the order I should do it in. Also wondering if the two masks will spill into eachother and create a problematic Key?

This topic has been closed for replies.

2 replies

Community Expert
March 26, 2023

I made a screenshot of your screenshot, named the file original footage, imported it into AE, Created a Main Comp from the footage, duplicated the footage layer twice, and added a bright yellow solid, so I could clearly see how well the matte works, then added Keylight to the top copy of the original footage. I sampled the color of the sock just to the left of the shadow, spun down the minimum properties in Keylight that always need adjustment, Looked at Combined matte, and fiddled with the matte until I had a solid white background and mostly black background. That took about 2 minutes.

I then turned off the top layer and did the same thing with Layer 2, but I sampled just to the right of the shadow to generate a combined matte that is very good on the lighter side of the matte. I had the info Panel open so I could verify that I had full white and full black the matte. I'll take care of the gray areas in the next step using the Multiply blend mode.

The next step is to turn on Layer 1, set the Blend mode to Multiply, check the matte for holes using the Info Panel, Pre-compose Layer 1 and 2, name the Pre-comp Track Matte, then set the Track Matte Pre-comp as a Luma Track matte for the original footage. 

 

That's how to handle poorly lit greenscreen projects easily. I do it all the time.  You can fine-tune the matte and fix the edge spill by adding Keylight to the Original footage, temporarily turning off the track matte, then pulling a decent key and using Keylight to correct the edge contamination and colors. You don't worry much about how well the sock is keyed out in this step; you just want to correct the spill, then turn on the Track Matte again. If needed you use more copies of the layer and the Track Matte to create light wrap and do further color corrections to sell the background replacement.

 

Participating Frequently
March 27, 2023

Hi Richard,

 

I attached a screenshot of where I'm at. I ended up having to export the clip from Premiere and importing it into AE. But I think my issue is with Dynamic Link.

 

I am going to start fresh with a full rez clip next weekend. But when I get it all set up again correctly, how will I actually dissappear the sock? Is that a blend mode thing?

Participating Frequently
March 28, 2023

Set the matte layer as a Luma Track Matte for the original footage. The bottom GIF shows the workflow. 

 

The sock turns yellow because there is a yellow solid below the sock.

 

If you want to fill the hole you'll need to have the appropriate camera movement and use Content Aware Fill or save a frame as a Photoshop file and create a background without the sock. The most efficient workflow depends on what happens in the original shot. 


Ok gotcha. So I will  need to do the bottom GIF workflow and then replace the yellow solid layer with the background Still.

The shot is attached. 

I definitely have to get Photoshop then, because there's a second shot in this that's going to be even more complicated I fear. 

Mylenium
Legend
March 26, 2023

That key is going to be problematic either way because plain and simply it's not the right key color. this is a situation where you wouldn't even bother with creating a direct key. Rather you'd create separate mattes in two pre-comps and then combine them to be used in the parent comp. That also eliminates any obscure masking procedures outside the crudest holdout matte (inner/ outer mask in Keylight).

 

Mylenium