FORUMS: list search recent posts

Re: If/else multiple expression

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


Dan Ebberts
Re: If/else multiple expression
on Nov 17, 2019 at 11:05:00 pm

I'm not sure this is exactly what you're trying to do, and I haven't tested it, but I think I'd set it up more like this:

r1 = comp("Rigo 1").layer("Text 01");
r2 = comp("Rigo 2").layer("Text 01");
r3 = comp("Rigo 3").layer("Text 01");
r4 = comp("Rigo 4").layer("Text 01");
sum = (r1.text.sourceText.length?1:0) + (r2.text.sourceText.length?1:0) + (r3.text.sourceText.length?1:0) + (r4.text.sourceText.length?1:0);
s = clamp(sum,0,4);
myArray = [value[1],-354,-296,-270,-231];
y = myArray[s];
[value[0],y]


Dan



Posts IndexRead Thread 


Current Message Thread:
  • If/else multiple expression by aniello ferrone on Nov 17, 2019 at 8:43:54 pm
    • Re: If/else multiple expression by Dan Ebberts on Nov 17, 2019 at 11:05:00 pm





© 2020 CreativeCOW.net All Rights Reserved
[TOP]