Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Matching brightness of an object to the randomly changing light in the room

  • Matching brightness of an object to the randomly changing light in the room

    Posted by Omer Aydin on July 17, 2023 at 11:31 am

    Hi,

    I have a footage of a room with strobe lights and I need to add an object (an image as 2D layer) into the room.

    How can I match the brightness of the object according to the light in the room.

    After doing that, I need the same thing for color, too.

    Omer Aydin replied 2 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Chris Voelz

    July 20, 2023 at 2:46 pm

    You can use expressions to determine the brightness by using finding the max value of RGB channels. You can do the same to get the color. These expressions have been covered on the forum, but half the battle is knowing what to search for. I hope this helps!

    sampleImage() to sample a section of the screen

    Great resource to learn sampleIamge, https://www.motionscript.com/design-guide/sample-image.html

    hslTorgb() to convert color to rgb values

    Math.max() to find “brightness” of color from rgb channels

  • Omer Aydin

    July 20, 2023 at 6:45 pm

    Thank you!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy