I have a control layer that is linked up to several layers with the expression: comp("_Final").layer("Control").effect("Color Control")("Color")
I want to link one layer up to the control with an expression that tells it to change the colour to whatever the 'control' colour is, but slightly darker.
I've tried to research this one for a while, but with no luck.
How would I do this?
Thanks in advance.
Color is defined in an array of 4 values from 0 to 1. If you simply multiply the array by a decimal you can change the brightness value of the color without changing the hue. If you add values to the array you change the hue not the hue. The smaller the number the darker the copy.
For example I just created 2 shape layers, used the pickwhip to link the fill color of one with the fill color of the other then added *.6 to the end. Here's the expression:
thisComp.layer("Shape Layer 2").content("Rectangle 1").content("Fill 1").color *.6
Here's the result using red as the fill: