Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions Checking for carriage returns in a text layer

  • Checking for carriage returns in a text layer

  • Dennis Cheung

    March 19, 2020 at 9:46 pm

    Hello again

    How do I count the number of carriage returns in a text layer? I thought it was the same as looking for a certain word or character, but I’m not getting the result I’m looking for.

    Thank you for your time
    D

  • Andrei Popa

    March 20, 2020 at 9:10 am

    How did you search for a certain word?

    Try this:

    thisLayer.text.split("\r").length-1

    Andrei
    My Envato portfolio.

Viewing 1 - 2 of 2 posts

Log in to reply.

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