Mailing List AE-List@media-motion.tv ? Message #63945
From: Jarle Leirpoll <AE-List@media-motion.tv>
Subject: Re: [AE] Expression to break text after a certain number of characters
Date: Wed, 11 Apr 2018 13:33:26 +0200
To: 'After Effects Mail List' <AE-List@media-motion.tv>
Thanks Mathias,

 I've used that method before, with * as the symbol for adding line breaks.
This is kind of the opposite problem. The user already have the line breaks
in the text they will be copy-pasting, I just want to preserve them.

Seems like the best way is to have multiple text fields in the mogrt, and
let them paste each paragraph in its own field. That's not as user-friendly
as I'd hoped. :-(

/jarle



Mathias Möhl wrote:
---------------------------------------
> Hmm, if MOGRTS are really limited that way, the only workaround that comes
to my mind is that you use another separator symbol for the linebreaks.
> So the user, for example, enters
> “This is line one and#this is line two and#a third one”
> using the # symbol instead of a line break and then
> in the expression you do
> lines = txt.split(/#/);
> instead of
> lines = txt.split(/\r|\n|\x03/);
> such that it splits the text at the # symbol instead of at actual line
breaks.


 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster