Dan. You’ve been tremendous help. I used the script for left adjusted text
L = thisComp.layer("TITLE");
for (i = thisComp.width; i >= 0; i--){
temp = L.sampleImage([i,thisComp.height/2],[0.5,thisComp.height/2],true,time);
if (temp[3] > 0) break;
}
[i,value[1]]
and aplyed it to scale of layer on background of that text. It works. But when I load the “TITLE” content from external .txt
$.evalFile("C:/.../TITLE.txt");
try {
eval(title1)[0]
} catch (err) {
"not found"
}
and change the text within, I get this error
After Effects warning: Timeout while waiting for the engine
Expression disabled.
Error occurred at line 4.
Comp: ‘TABULKA1’
Layer: 16 (‘Title bg’)
Property: ‘Scale’
is there some way to maybe let the scale expression wait until the text is loaded? Seems to me that is looping it self or something..
And one more question, Is there a way to get number of lines of text? Or at least heigh of the text field? So when I paste text into some layer, the animator would readjust itself acordingly to display one row per second.
Thank you