4 weeks ago
Hi,
In the 2d-script, for a given textblock width, I can get information about the textblock height, by requesting TEXTBLOCK_INFO. This request is not allowed in the master script or in the parameter script. Is there a way of obtaining a textblock height outside the 2d-script?
In the master script I tried a combination of using STW for the length of the string and requesting HEIGHT_OF_STYLE for the height of one row of text. Together with the textblock width that I set myself, it is possible to get how many rows of text are needed and then calculate the total height.
This works except in some cases where the actual 2d-script textblock uses an extra row compared to the calculation.
So, again, is it possible to get correct textblock info outside the 2d-script?
Tuesday
Straightforward no.
But what is the purpose of this parameter to be visible in the parameter list?
I use the manual widths and heights to get the "box" if the wrapping is used, or the one line text when is not used, all that is calculated inside 2d or 3d script and works.
Thursday
Ok, thank you Piotr for answering. I'm doing som calculations and sorting in the master script and I need the actual height of the text block there. I guess I will have to continue trying to find a workaround.
Thursday
The only possible workaround would be to trigger save to dummy text file and then read it - doable in UI/2D script - save + read in Parameter script....