Node Bounding Box Methods

nodeGetBoundingBox <node> <matrix3> 

Returns a two element array containing the min and max points of the node's bounding box in coordinate system matrix3 as point3 values. Positions returned are always in the specified matrix3 coordinate system.

Available in 3ds Max 2008 and higher. Previously, available in the Avguard Extensions.

FOR EXAMPLE:

--Run:
t=teapot()
c=freecamera()

bb= nodeGetBoundingBox $teapot001 $camera001.transform
in coordsys$camera01 point pos:bb[1]
in coordsys$camera01 point pos:bb[2]
--Note that this does not correct for the camera's FOV.

   

nodeLocalBoundingBox <node> 

Returns a two element array containing the min and max points of the node's local bounding box. Positions returned are in the current coordinate system.

Available in 3ds Max 2008 and higher. Previously, available in the Avguard Extensions.

FOR EXAMPLE:

--Create a teapot. Run:
bb= nodeLocalBoundingBox $teapot01
point pos:bb[1]
point pos:bb[2]