ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Inserting line breaks from Text File

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Matt Miller
Inserting line breaks from Text File
on Aug 13, 2018 at 4:50:46 pm
Last Edited By Matt Miller on Aug 13, 2018 at 9:20:13 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!


Return to posts index

Dan Ebberts
Re: Inserting line breaks from Text File
on Aug 13, 2018 at 11:01:10 pm

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

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


Dan



Return to posts index

Matt Miller
Re: Inserting line breaks from Text File
on Aug 14, 2018 at 4:43:08 pm

Dan,

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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]