-
Linking color and then changing its brightness
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]])