Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Link two Fill effects, with child slightly brighter no matter what color

  • Link two Fill effects, with child slightly brighter no matter what color

    Posted by Adam Koubek on August 24, 2017 at 8:06 pm

    Hey all,
    I have a “Child” fill effects connected to a “Controller” fill effect with an expression. I would like the child to be slightly darker than the Controller. I can’t figure out how to adjust color via expressions. thank you

    Adam Koubek replied 8 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 24, 2017 at 8:27 pm

    This should give the Child half the luminance of the Controller:

    factor = .50;
    c = thisComp.layer(“Controller”).effect(“Fill”)(“Color”);
    h = rgbToHsl(c);
    hslToRgb([h[0],h[1],h[2]*factor,h[3]])

    Dan

  • Adam Koubek

    August 28, 2017 at 2:48 pm

    Exactly what I was looking for. THank you Dan!

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