-
I need text to break after a set number of characters
I’m creating a series of titles, they all need to have the same background, so I’m duplicating a comp several times and then changing the text layer.
Since I have to do this several times I thought of using thisComp.name on the text layer so I don’t have to go into each comp to change the text.
The problem is the titles are fairly long, so I need the line to break after a few characters, for example:
Data enriquecida
de cada transacciónas opposed to
Data enriquecida de cada transacción
I tried the expression pasted below, but although is not showing an error, it’s not working.
Can anyone help me tweak it?Thanks in advance.
D.txt=thisComp.name;
i=0;
if (txt.length % 16==0)
{
txt += "\r";
i++;
}
txt;