Forums > Jitter

"getbounds" of jit.gl.texture inside a JS

March 31, 2014 | 11:27 am

I am dynamicly creating jit.gl.text3d objects inside a JS.Now I need to get the bounds of the text inside my JS. there is a "boundcalc" attribute for jit.gl.text3d to be able to get the bounds with a "getbounds" message. Unfortunately "getbounds" is not a funtion and not returning anything I could put in an array to proceed my calculations. In the MAX UI it’s working fine – but that is not an option for me. Is there any way to get the message from jit.gl.txt3d inside my script?


April 2, 2014 | 9:33 am

bounds is an attribute, not a message, so in JS it would be something like:
var bounds = myJitGlText3D.bounds;

bounds should then hold 6 values, the 3 lower bounds followed by the 3 upper bounds.


April 2, 2014 | 9:47 am

Thanks for the help.
Works straight away! I guess the problem was my lack of knowledge. I thought "getbounds" is the required attribute. Problem solved.


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