CG comping. Lightgroups vs AOVs

I find that when comping CG, you have to make the choice between using the light groups OR using diffuse/spec/sss etc

For instance, once you have adjusted the balance of light groups then you can no longer subtract the specular as it contains the original light group balance, and vice versa.

But I suddenly thought, I wonder if somebody very clever has found a way of using both.

Any thoughts welcome. Thanks.

Great. That solves it. :upside_down_face:

3 Likes

Try this:

A = Original
B = LightGroups Adjustment
C = Beauty AOVs Ajustments
D = A == 0 ? 0 : B / A ( if A equal zero then zero, otherwise B divided by A )
R = C * D (C multiplied by D)

R is your Result

The order of B and C don’t really matter

In Flame you may need to write a Matchbox for this.

3 Likes

Not a full beauty rebuild, but…
If you want to use them to tweak the beauty / result you can just subtract them, tweak, and add back. You’d probably do this after your initial rebuild using whichever set you prefer. As long as you’re not clamping the different light balance you mentioned shouldn’t break the comp.
Or did you already try this? :slight_smile:

I realize you may get away without a matchbox. The reason for the D expression is to avoid dividing by 0. You may be able to get around this by lifting the image ever so slightly by a very tiny amount, do the operation and the negating that change after… so regular Comp nodes my suffice. I’ll test tomorrow.

Example Batch. Not including the division by 0 check… I leave that to you.

2 Likes

Ah. Yes. This makes perfect sense. Thank you.

1 Like

@milanesa Getting lots of love for this tip at the company I’m at. Thanks.

1 Like

Picture for anyone else looking to try this out.

6 Likes