ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Linking color and then changing its brightness

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Michał Jawiński
Linking color and then changing its brightness
on Jun 27, 2018 at 7:46: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]])


Return to posts index

Andrei Popa
Re: Linking color and then changing its brightness
on Jun 29, 2018 at 1:32:34 pm

maybe this will help
https://forums.creativecow.net/thread/227/36651#36671

Andrei
My Envato portfolio.


Return to posts index

Michał Jawiński
Re: Linking color and then changing its brightness
on Jul 2, 2018 at 10:21:28 am

Thanks for the link!


Return to posts index

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