Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Opacity expression linked to QuickTime. PLEASE HELP

  • Opacity expression linked to QuickTime. PLEASE HELP

    Posted by Adam Henderson on February 3, 2010 at 3:17 pm

    I have 2 3D layers on a comp with a camera looking at them.

    One 3D solid is masked out to be lit up by a pink light. In front of it is a QuickTime masked out to look like an old TV. The solid is acting like the ground, the pink light is acting like the TV brightness.

    How do I make the opacity of the solid react to the brightness of the TV through an expression. I can’t link it to the light b/c I don’t have anything free to add an expression to. Everything is being used. All I have is the opacity of the solid. I tried adding Levels to the QT, but the Opacity expression won’t link to the Histogram.

    Thanks!

    Adam Henderson replied 16 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 3, 2010 at 4:32 pm

    You could link the opacity of your solid to the brightness of your QT movie using sampleImage(), like this:

    L = thisComp.layer(“Your QT Movie”);
    rgba = L.sampleImage([L.width,L.height]/2,[L.width,L.height]/2,true);
    rgbToHsl(rgba)[2]*100

    I would think though, you might have better luck linking the brightness of the pink light to the brightness of the movie in a similar way.

    Dan

  • Adam Henderson

    February 3, 2010 at 5:10 pm

    That worked, thanks!

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