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 appear in Create mode of commandFlag 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

import maya.cmds as cmds

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]

Previous topic

pymel.core.general.evalDeferred

Next topic

pymel.core.general.format

Core

Core Modules

Other Modules

This Page