ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: long expression for if/then/else

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Andrei Popa
Re: long expression for if/then/else
on Jan 15, 2020 at 2:21:35 pm

I think this should work.

if (comp("countries").layer("color scheme").effect("activate")("Checkbox") == 0){
try{
NUME = thisLayer.name.split(" ")[0];
x = Math.floor(comp("countries").layer(NUME).effect("color scheme")("Slider"));
comp("countries").layer("color scheme").effect("land " + x)("Color");
} catch(err) {
x = [1,1,1,1]
}
}else{
comp("countries").layer(thisLayer.name).effect("country colour")("Color")
}


Andrei
My Envato portfolio.


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]