Go to: Synopsis. Return value. Flags. Python examples.
exactWorldBoundingBox(
[dagObject...]
, [calculateExactly=boolean], [ignoreInvisible=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
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.
float[] | xmin, ymin, zmin, xmax, ymax, zmax. |
calculateExactly, ignoreInvisible
Long name (short name) |
Argument types |
Properties |
|
calculateExactly(ce)
|
boolean
|
|
|
Should the bounding box calculation be exact?
|
|
ignoreInvisible(ii)
|
boolean
|
|
|
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 have multiple arguments, passed either as a tuple or a list.
|
import maya.cmds as cmds
bbox = cmds.exactWorldBoundingBox( 'sphere1', 'cube1', 'cone2')
print 'Bounding box ranges from: %f' % bbox[0], ', %f' % bbox[1], ', %f' % bbox[2],
print ' to %f' % bbox[3], ', %f' % bbox[4], ', %f' % bbox[5]