drawBoundingBox

Function

Creates a polygon cube object to encompass the bounding box area of the selected objects or components.

Supported selection types:

The size and location of the bounding box are echoed to Maya's output in the form of:

  <width (X)> x <height (Y)> x <depth (Z)> @ { X, Y, Z }

e.g.:

Bounding Cube: 1.38 x 1.36 x 1.08 @ { -1.61, 1.26, 1.28 }

Limitations

Due to a BUG in Maya, all selected objects must be visible else the bounding box will be calculated incorrectly.