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


    Mar 31 2014 | 6:27 pm
    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?

    • Apr 02 2014 | 4:33 pm
      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.
    • Apr 02 2014 | 4:47 pm
      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.