pymel.core.system.dbfootprint

dbfootprint(*args, **kwargs)

This command lets you explore the memory usage of specific parts of the scene. Query the ‘type’ flag to see what all of the different types are, and query a specific type to get a description of what information it will provide. All output is in JSON format so that it can easily be processed and formatted to highlight areas of interest.

Flags:

Long Name / Short Name Argument Types Properties
allObjects / all bool ../../../_images/create.gif
  Ignore any specified or selected objects and measure all applicable objects. The definition of allObjectswill vary based on the type of objects being measured - see the type documentation for details on what it means for that type. By default if no objects are selected or specified then it will behave as though this flag were set.
outputFile / of unicode ../../../_images/create.gif
  Specify the location of a file to which the information is to be dumped. Default will return the value from the command. Use the special names stdout, cout, stderr, or cerrto redirect to the standard output or error locations.
type / t unicode ../../../_images/create.gif ../../../_images/query.gif
  Specify the type of object footprint to measure. The various types are registered at run time and can be listed by querying this flag without a value. If you query it with a value then you get a description of what that particular type is going to measure. In query mode, this flag can accept a value.Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.dbfootprint

Example:

::

import pymel.core as pm

pm.dbfootprint( query=True ) # Result: [u’nodes’] #