Forums > Jitter

"getbounds" of inside a JS

Mar 31 2014 | 11:27 am

I am dynamicly creating objects inside a JS.Now I need to get the bounds of the text inside my JS. there is a "boundcalc" attribute for 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 inside my script?

Apr 02 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.

Apr 02 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)

Forums > Jitter