Copy link to clipboard
Copied
Hi all. I am trying to use a dropdown menu control to change the colour of an imported EPS within AE. Can someone help? Tried Expression controls>dropdown menu control and added colour 1, 2 and 3. But this is where I get lost! Does it need a fill Effect>Generate Fill applied beforehand and if so is it a matter of pickwhipping but then how do I choose what the colours are? Any help appreciated.
Copy link to clipboard
Copied
This is not directly possible. The expression values have to be referenced against a second list or array inside the expression itself. All the dropdown does is to provide a value or index. And yes, of course you need to connect it to something that actually can generate a fill liek an effect or e.g. a fill control after converting the logo to a shape layer. Expressions themselves cannot change pixel data. So assuming you have three colors, it could look something like this:
myDrop=thisComp.layer("XYZ").effect("Dropdown")("Dropdown");
myColA=[0,0,1];
myColB=[1,0,1];
myColC=[1,0.5,1];
myCols=[myColA,myColB,myColC];
myOut=myCols(myDrop);
[myOut[0],myOut[1],myOut[2]]
Of course you need to adjust the references and colors to suit your setup.
Mylenium