-
Formatting text question in relation to sampleImage Hack
So I am using the cool sampleImage hack to interactively move a solid based on the length of written type. Its working great for some things but I have an issue. I have two lines of text sometimes. I would like the two lines oftext to be left aligned. The solid is aligned to the left edge. As I type in either line I would the size of the sampleimage to expand from the right side. Sorry if this is confusing. Is there a text formatting expression I can use to do this over the two lines
Thanks
AK
L = thisComp.layer("TYPE HERE");
for (i = 0; i <= thisComp.width; i++){
temp = L.sampleImage([i,thisComp.height/2],[0.5,thisComp.height/2],true,time);
if (temp[3] > 0) break;
}
[i-20,value[1]]
