Is that a paragraph text or a point text? Meaning, are the rows broken with “Enter” or are they auto by the borders of the paragraph text?
If paragraph text:
posterizeTime(0);
function getNumRows(myLeading, myFontSize, height) {
H = height - myFontSize * 0.5;
return Math.floor(H / myLeading);
}
H = sourceRectAtTime(time, false).height;
var myStyle = text.sourceText.style;
myFontSize = myStyle.fontSize;
myLeading = myStyle.autoLeading ? myFontSize * 1.2 : myStyle.leading;
numRows = getNumRows(myLeading, myFontSize, H);
S = scale[1] * 0.01;
value - [0, numRows * myLeading * S];
If point text:
var myStyle = text.sourceText.style;
myFontSize = myStyle.fontSize;
myLeading = myStyle.autoLeading ? myFontSize * 1.2 : myStyle.leading;
S = scale[1] * 0.01;1
numRows = text.sourceText.split("\r").length;
value - [0, numRows * myLeading * S];