-
using layer control to select color or the ramp effect for layers
Hi,
I’m trying to create a system in which a user can use a layer control drop down menu to choose the color of specific layers. The catch is one of the color options is also the ramp effect.
Right now I have a series of nulls. The null “Control” contains the layer control effect. The layer control references other nulls named “black”, “red”, “ramp”, etc.. I also have a null called “colors” which contains all the effects (color control and ramp). These effects are named “black”, “red, “ramp”, etc…
The expression I use works great for changing the color of a fill on a solid, but I’m not sure how to make it deactivate the fill and add a ramp. Any ideas?
Let me know if that doesn’t make sense.
a = thisComp.layer("Control").effect("Color1")("Layer").name;thisComp.layer("colors").effect(a)("Color")