# Using Keylight And Primatte Together

**URL:** https://forum.highend3d.com/t/using-keylight-and-primatte-together/9686
**Category:** Compositing
**Tags:** shake
**Created:** [June 3, 2006, 8:03am UTC](https://forum.highend3d.com/t/using-keylight-and-primatte-together/9686 "2006-06-03T08:03:00Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![user\_deleted](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@user\_deleted](https://forum.highend3d.com/u/user_deleted)
#### Post date: [June 3, 2006, 8:03am UTC](https://forum.highend3d.com/t/using-keylight-and-primatte-together/9686/1 "2006-06-03T08:03:00Z")

</div>

Recently, someone showed me a way of using one keyer to produce a good edge matte (I am dealing with wispy hair) and another keyer to produce a holdout for the first. Trouble is, I can't remember the process. He used Dilate/Erode and then KeyMix or Max to combine the mattes. There may have been something else too... Can anyone suggest a tree?

Thanks

---

<div class="post-metadata">

### Author: ![user\_deleted](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@user\_deleted](https://forum.highend3d.com/u/user_deleted)
#### Post date: [June 3, 2006, 8:47am UTC](https://forum.highend3d.com/t/using-keylight-and-primatte-together/9686/2 "2006-06-03T08:47:39Z")

</div>

take a look in the manual under combining keyers and keying dv footage (around page 700) should sort you out.

---

<div class="post-metadata">

### Author: ![user\_deleted](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@user\_deleted](https://forum.highend3d.com/u/user_deleted)
#### Post date: [June 5, 2006, 3:13pm UTC](https://forum.highend3d.com/t/using-keylight-and-primatte-together/9686/3 "2006-06-05T15:13:07Z")

</div>

QUOTE(silk @ 06/03/06, 09:47 AM) [snapback]238935[/snapback]  
take a look in the manual under combining keyers and keying dv footage (around page 700) should sort you out.

Thanks, I did refer to it but it wasn't the really neat solution that had been shown to me.

A

---

<div class="post-metadata">

### Author: ![user\_deleted](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@user\_deleted](https://forum.highend3d.com/u/user_deleted)
#### Post date: [June 6, 2006, 3:44am UTC](https://forum.highend3d.com/t/using-keylight-and-primatte-together/9686/4 "2006-06-06T03:44:32Z")

</div>

I've been pulling a bunch of keys lately and this is what I got out of the tutorials:

-- I'll pull my main key with Primatte  
-- then I'll pull another key with keylight, crank the screenRange right up and attach a dilate and a blur to it. Then I'll feed that second key back into the primatte holdout input. 9 times out of 10 I can then concetrate on trying to make the edges work with the primatte.

This technique also works with two primattes and two keylights, as they both have holdout inputs... Pretty basic stuff but I'm just getting started 🙂

j

---

<div class="post-metadata">

### Author: ![user\_deleted](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@user\_deleted](https://forum.highend3d.com/u/user_deleted)
#### Post date: [June 6, 2006, 4:05pm UTC](https://forum.highend3d.com/t/using-keylight-and-primatte-together/9686/5 "2006-06-06T16:05:52Z")

</div>

most people would tend to do it the other way around using primatte for the hard matte and keylight for the soft one. That dosnt make your method any less valid though.

---

<div class="post-metadata">

### Author: ![user\_deleted](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@user\_deleted](https://forum.highend3d.com/u/user_deleted)
#### Post date: [June 6, 2006, 4:56pm UTC](https://forum.highend3d.com/t/using-keylight-and-primatte-together/9686/6 "2006-06-06T16:56:44Z")

</div>

I'm not good enough to finesse Keylight to deal with soft edges -- for whatever reason Primatte for me works better. Still trying to learn as I've also heard that many prefer Keylight for the edging. The only reason I'm using it for the holdout is that screenrange cranked really fills a matte effortlessly. Need to learn how to do that with Primatte and having to do a bunch of fg operators...

j

---

<div class="post-metadata">

### Author: ![user\_deleted](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@user\_deleted](https://forum.highend3d.com/u/user_deleted)
#### Post date: [June 8, 2006, 9:43am UTC](https://forum.highend3d.com/t/using-keylight-and-primatte-together/9686/7 "2006-06-08T09:43:16Z")

</div>

This set-up has been suggested to me:

![](http://www.vertigo.co.uk/shake_tree.jpg)

but I can't get the dilateErode settings correct, I can't get a clean matte with no-holes and then shrink it to use as a holdout matte.

---

<div class="post-metadata">

### Author: ![user\_deleted](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@user\_deleted](https://forum.highend3d.com/u/user_deleted)
#### Post date: [June 8, 2006, 11:38am UTC](https://forum.highend3d.com/t/using-keylight-and-primatte-together/9686/8 "2006-06-08T11:38:52Z")

</div>

wow, so complicated.  
remember that, primatte suggest you give it the bkg even if you don't use it, coz primmate will use the bkg information as well to produce better result. You can feed the bkg to the primatte, but in output mode, set it to key or foreground comp without bkg.  
the japanese girl clips, i got quite a good key with just one primatte and roto. i bit lazy, always try use as little node as possible.

thanks

---

<div class="post-metadata">

### Author: ![user\_deleted](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@user\_deleted](https://forum.highend3d.com/u/user_deleted)
#### Post date: [June 12, 2006, 12:29pm UTC](https://forum.highend3d.com/t/using-keylight-and-primatte-together/9686/9 "2006-06-12T12:29:09Z")

</div>

I understand, but the green screen on the woman file is absolutely awful. It's from the Paolini Shake 4 book and is purposely bad I think. I was looking for alternative ways to cope with this.

---

<div class="post-metadata">

### Author: ![user\_deleted](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@user\_deleted](https://forum.highend3d.com/u/user_deleted)
#### Post date: [June 13, 2006, 8:56am UTC](https://forum.highend3d.com/t/using-keylight-and-primatte-together/9686/10 "2006-06-13T08:56:36Z")

</div>

I recommend that you read the Steve Wright book which has a whole bunch of tips and tricks for dealing with real world keying problems.

Try to level the luminance of the footage so that the screen appears flat but the FG has a heavy vingetta instead. it can be done like this:

CODE  
FOOTAGE = ColorWheel(720, 576, 2, 0, 1, 1, 1);  
RGrad1 = RGrad(720, 576, 2, width/2, height/2, 1.06609809, min(width,height)/4,   
&nbsp;&nbsp;&nbsp;&nbsp;min(width,height)/4, 0.5, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0);  
Brightness1 = Brightness(FOOTAGE, 1);  
Mask(Brightness1, RGrad1, "A", 100, 0, 1, 1);
