After effect scripting set text bounds
I'm trying to generate text layers dinamically using a script.It works well.I coudn't find a way to contain the text without overflowing .As you can see in this image text is gone out of the composition view.
I trid to set a width but it doesn't work .Any idea about this.
var textLayer = comp.layers.addText(text);
textLayer.sourceRectAtTime(inPoint, false).width=1000;
