nodeGetBoundingBox <node> <matrix3> asBox3:<bool>
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.
NEW in 3ds Max 2022:: When the optional asBox3
keyword argument is true, returns the bounding box as a Box3 value.
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> asBox3:<bool>
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.
NEW in 3ds Max 2022:: When the optional asBox3
keyword argument is true, returns the bounding box as a Box3 value.
FOR EXAMPLE:
--Create a teapot. Run: bb= nodeLocalBoundingBox $teapot01 point pos:bb[1] point pos:bb[2]