ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

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

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Adam Koubek
Link two Fill effects, with child slightly brighter no matter what color
on Aug 24, 2017 at 8:06:20 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


Return to posts index

Dan Ebberts
Re: Link two Fill effects, with child slightly brighter no matter what color
on Aug 24, 2017 at 8:27:13 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



Return to posts index

Adam Koubek
Re: Link two Fill effects, with child slightly brighter no matter what color
on Aug 28, 2017 at 2:48:56 pm

Exactly what I was looking for. THank you Dan!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]