ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

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


constanti dinu
long expression for if/then/else
on Jan 15, 2020 at 11:28:13 am

hello guys, i need to find out a sollution for an expression.
i'm using a checkbox that switches colours based on selection.

logically it will be if a=0 then b else c.

a should be
(comp("countries").layer("color scheme").effect("activate")("Checkbox") == 0)

b should be
try{NUME = thisComp.layer(index).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]
}

c should be
comp("countries").layer(thisLayer.name).effect("country colour")("Color")


i don't know how to include these expressions into if then else text.
please help


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]