Hi,
i calculated distance between two moving points using blob tracking. When i tried to reference that value in scale in x in Geotext comp for a text, the stretch amount is too small not fitting the entire distance. When I multiply the distance with some integer, its fitting in between the points. but how to find that factor mathematically, so that whenever I edit the table of text for Geotext Comp, the stretching effect will be perfectly updated.?
Adding screenshots with and without the stretch factor:
you ocan calculate the width of the text using the Geo Text COMP’s .textWidth member. As you already know the distance between the two points, you should now be able to calculate the scaling factor.
I tried with .evalTextSize() initially but couldn’t figure out how to take the text from all cells in “text” column. I figured out a way with .evalTextSize() and a little bit of scripting.