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 pmHello 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
DAndrei Popa
March 20, 2020 at 9:10 amHow 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.