Forums > Jitter

getbounds for character string

Feb 05 2014 | 8:29 pm

Hi everyone,

I need to make a horizontal scrolling text patch, and I want to get the length of a text file (string of characters) so that I can appropriately set its initial position in the object.

I literally saw this done a few days ago, but didn’t have the chance to copy the patch and now I can’t recreate it. Any takers?


Feb 06 2014 | 10:54 am

you may have more success using gl.text3d, and the querying the @bounds attribute with the getbounds message.

Feb 06 2014 | 10:57 am

you also have to set @boundcalc 1 for this to work.

-- Pasted Max Patch, click to expand. --


Feb 11 2014 | 6:08 am

thanks rob for this hidden message !
o documentation would be nice ;-)

it would be great to do soft wraping text with or

i tyed it with the also undocumented bound message.

the only way i found, is to do this in jit.mgraphics by checking every single characters position and do the linebreaks "by hand".


Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Jitter