ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: If/else array problem

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


aniello ferrone
Re: If/else array problem
on Dec 9, 2019 at 4:13:34 pm

Thank you Dan,
It doesn't seems to fix it, I'm starting to think that there is something wrong with all that conditions, for example, this is working perfectly

Thank you so much
Aniello

r1 = comp("Rigo 1").layer("Text 01").text.sourceText;
r2 = comp("Rigo 2").layer("Text 01").text.sourceText;
r3 = comp("Rigo 3").layer("Text 01").text.sourceText;

//Se -||
if ((r1 == 0) && (r2 != 0) && (r3 != 0)) {
[0,-137];
//Se --|
} else if ((r1 == 0) && (r2 == 0) && (r3 != 0)) {
[0,-30];
//Se ||-
} else if ((r1 != 0) && (r2 != 0) && (r3 == 0)) {
[0,-339];
//Se |--
} else if ((r1 != 0) && (r2 == 0) && (r3 == 0)) {
[0,-433];
//Se |||, -|-, |-|
} else { [0,-232]; }




Aniello Ferrone
Viral Video Editor
http://www.fanpage.it


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]