[Christian Simpson] “I was wondering if it’s possible for an if else statement to target an index from a popup controller?”
Yes, I’ve recently started doing that.
[Christian Simpson] “I was thinking I need to target the opacity parameter. Is this possible and if so how would you write that?”
something like this applied to Opacity parameter
if (comp(“COMP NAME”).layer(“LAYER NAME”).effect(“EFFECT NAME”)(“POPUP PARAM”)==1) 100 else 0;
the popup menu choices start at 1 as the topmost and 2 as the next down etc. so with the above expression the layer would be transparent unless the popup menu was set to the first choice (==1)
== is equal to and of course you can use other comparison operators as well (<, >, <=, >=, !=)