pymel.core.general.exactWorldBoundingBox

exactWorldBoundingBox(*args, **kwargs)

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.

Flags:

Long Name / Short Name Argument Types Properties
calculateExactly / ce bool  
   
ignoreInvisible / ii bool ../../../_images/create.gif
  Should the bounding box calculation include or exclude invisible objects? Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.exactWorldBoundingBox

Example:

import pymel.core as pm

bbox = pm.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]