Go to: Synopsis. Return value. Flags. MEL examples.

Synopsis

exactWorldBoundingBox [-calculateExactly boolean] [-ignoreInvisible boolean] [dagObject...]

exactWorldBoundingBox is undoable, NOT queryable, and NOT editable.

This command figures out an exact-fit bounding box for the specified objects (or selected objects if none are specified) This bounding box is always in world space.

Return value

float[]xmin, ymin, zmin, xmax, ymax, zmax.

Flags

calculateExactly, ignoreInvisible
Long name (short name) Argument types Properties
-calculateExactly(-ce) boolean create
Should the bounding box calculation be exact?
-ignoreInvisible(-ii) boolean create
Should the bounding box calculation include or exclude invisible objects?

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

float $bbox[] = `exactWorldBoundingBox sphere1 cube1 cone2`;
print("Bounding box ranges from: " +
      $bbox[0] + "," + $bbox[1] + "," + $bbox[2] + ", to " +
      $bbox[3] + "," + $bbox[4] + "," + $bbox[5] + ".\n");