2 Replies Latest reply on Jan 27, 2016 7:20 AM by Szalam

    How to Control a light's Intensity with a target composition's Brightness?

    honigb

      Hey there, I'm very new to expressions in After Effects CC and am struggling with this.

      I have a feeling it's really simple.

       

      I am using an ambient light in a 3D room to simulate a TV's glow on the room walls.

       

      I have already created a target comp, "TvContent," that represents the video playing on the tv. To do this, I used the mosaic effect on a .mov file at 1x1. So, each frame of "TvContent" is a different solid color created from that frame of the .mov file. I have successfully paired the COLOR of the ambient light with the color of the "TvContent" comp, but need an expression that targets the BRIGHTNESS value of "TvContent" to determine the Intensity of the ambient light.

      Moreover, I would like the intensity value to be HALF that of the brightness value. That is..... when the Brightness of "TvContent" is 40%, I would like the ambient light's intensity to be 20%

      Hopefully I explained that alright.
      Any help would be much much appreciated.
      Thanks in advance!

      -Bryan