Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Inserting line breaks from Text File

  • Inserting line breaks from Text File

    Posted by Matt Miller on August 13, 2018 at 4:50 pm

    I have a script that uses an external text file to populate different copy points into an After Effects composition. The client I have is very specific about where the line breaks in the copy should be. I want to avoid having to go into each of the newly generated comps and manually insert the line breaks. Is there a way for me to add a special character into my text file that after effects can interpret as a line break through an expression?

    Thanks for the help!

    Matt Miller replied 7 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 13, 2018 at 11:01 pm

    You could do something like this to replace “*” characters with line breaks:

    value.replace(/\*/g,”\r”)

    Dan

  • Matt Miller

    August 14, 2018 at 4:43 pm

    Dan,

    Thanks for the quick reply. This is exactly what I needed, thanks for the help!

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