Skip to main content
Inspiring
September 25, 2017
Answered

Change hue based on light

  • September 25, 2017
  • 2 replies
  • 553 views

I have two layers. One layer is the footage from the camera with microphones visible. Another layer is a still that is a plate without the microphones.

This is ideality how I get rid of unwanted scenery. But there are windows which change the lighting in the interview scene making the plate useless.

I could use keyframes to hue as best as possible the plate lightness, but Im wondering is there an easier way to eyedropper the footage sampling and effect the plate automatically?

 

This topic has been closed for replies.
Correct answer openskies2009

I ended up reverting to the clone stamp tool, there is enough similar background to patch over the mic stands. So when the light outside changes, the cloned walls do, making it much more seamless then using even photoshop stills.

2 replies

Mylenium
Legend
September 26, 2017

It's unlikely that even Rick's expression solution will work. Due to indirect light scattering and bouncing the colors will still be uneven. It might make a lot more sense to use large feathered edges and blend in your patches with a little adjustment. It may not be exact, but it's probably more pleasing to the viewer. If you don't get your color corrections 100% correct, even the tiniest deviation will make it look extremely fake and annoying.

Mylenium

openskies2009AuthorCorrect answer
Inspiring
September 26, 2017

I ended up reverting to the clone stamp tool, there is enough similar background to patch over the mic stands. So when the light outside changes, the cloned walls do, making it much more seamless then using even photoshop stills.

Community Expert
September 26, 2017

That is what I would have done. I should have suggested it.

Community Expert
September 25, 2017

You can use an expression to take a point sample of color to drive the color of a Color Control. Then you can link that to other color properties but I'm not sure about the math required to turn a color sample into a lightness and hue value. Probably just a lightness value. It would take some experimenting.

You could add Effects>Expression Controllers>Color Control to a null then add this expression to the color Control:

f = thisComp.layer("YourFootage.mov");

point = position;

f.sampleImage(point, radius = [.5, .5], postEffect = true, t = time)

% bra

This will give you a Null that you can position directly over the area you want to sample and the color values of that sample.

The next part is the hard part. You have to figure out how to turn Red, Green and Blue values into some kind of a percentage of change so you can adjust the lightness. Just pointing to the expression Controller will give you an array for color like this: [.5, .5, .5, 1]. The range of values is between zero and one. That particular array would give you 50% gray with no transparency.    

Now all you have to do to figure out the color correction is to figure out the math to turn the changing RGB values into something that can be used by color correction.

On the other hand you may be better off just using Color Stabilizer