ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Text expression selector

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: Text expression selector
on Jun 15, 2020 at 9:59:17 pm

Try this:


myArray = [3,10,17,20];
included = false;
for (i = 0; i < myArray.length; i += 2){
if (i < myArray.length-1){
if (textIndex >= myArray[i] && textIndex <= myArray[i+1]){
included = true;
break;
}
}
}
included ? 100 : 0



Dan



Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]