Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Linking color and then changing its brightness

  • Linking color and then changing its brightness

    Posted by Michał Jawiński on June 27, 2018 at 7:46 am

    Hello, I have this expression which seems to be not completed. It supposed to feed the color from another layer and then add a brightness to this color. I am complete beginner of the expressions in AE I believe that the problem is in defining the color as a value maybe? Can somebody explain to me how to link those two expressions please?

    thisComp.layer("Primary").content("Rectangle 1").content("Fill 1").color;

    c = content("Rectangle 1").content("Fill 1").color;

    hsl = rgbToHsl(c);

    factor = 1.4; // 25% brighter

    newL = Math.min(hsl[2]*factor,1);

    hslToRgb([hsl[0],hsl[1],newL,hsl[3]])

    Michał Jawiński replied 8 years, 2 months ago 2 Members · 2 Replies
  • 2 Replies

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