Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Comparing Values from infinite amount of Layers

  • Andy Kreutzberg

    March 7, 2013 at 3:49 pm

    Ah, 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 pm

    Is 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

Page 2 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy