Activity › Forums › Adobe After Effects Expressions › Comparing Values from infinite amount of Layers
-
Comparing Values from infinite amount of Layers
Dan Ebberts replied 13 years, 5 months ago 2 Members · 12 Replies
-
Andy Kreutzberg
March 7, 2013 at 3:49 pmAh, i did not notice the missing characters after copy and pasting, sorry.
Yes, there is backslashes.
Basically, it should look like this:
thisComp.layer(index).text.sourceText.split(/*backslash*n|*backslash*r/).length;
-
Dan Ebberts
March 7, 2013 at 7:37 pmIs this what you’re after?
startIdx = 8;
stopIdx = thisComp.numLayers – 5;
n = 0;
for (idx = startIdx; idx <= stopIdx; idx++) n = Math.max(n,thisComp.layer(idx).text.sourceText.split(/\n|\r/).length); Dan
Reply to this Discussion! Login or Sign Up