pymel.core.general.performanceOptions

performanceOptions(*args, **kwargs)

Sets the global performance options for the application. The options allow the disabling of features such as stitch surfaces or deformers to cut down on computation time in the scene. Performance options that are in effect may be on all the time, or they can be turned on only for interaction. In the latter case, the options will only take effect during UI interaction or playback. Note that none of these performance options will affect rendering.

Flags:

Long Name / Short Name Argument Types Properties
clusterResolution / cr float ../../../_images/query.gif
  Sets the global cluster resolution. This value may range between 0.0 (exact calculation) and 10.0 (rough approximation)
disableStitch / ds unicode ../../../_images/query.gif
  Sets the state of stitch surface disablement. Setting this to onsuppresses the generation of stitch surfaces. Valid values are on, off, interactive.
disableTrimBoundaryDisplay / dtb unicode  
   
disableTrimDisplay / dt unicode ../../../_images/query.gif
  Sets the state of trim drawing disablement. Setting this to onsuppresses the drawing of surface trims. Valid values are on, off, interactive.
latticeResolution / lr float ../../../_images/query.gif
  Sets the global lattice resolution. This value may range between 0.0 (exact calculation) and 1.0 (rough approximation)
passThroughBindSkinAndFlexors / pbf unicode ../../../_images/query.gif
  Sets the state of bind skin and all flexors pass through. Valid values are on, off, interactive.
passThroughBlendShape / pbs unicode ../../../_images/query.gif
  Sets the state of blend shape deformer pass through. Valid values are on, off, interactive.
passThroughCluster / pc unicode ../../../_images/query.gif
  Sets the state of cluster deformer pass through. Valid values are on, off, interactive.
passThroughDeltaMush / pdm unicode ../../../_images/query.gif
  Sets the state of delta mush deformer pass through. Valid values are on, off, interactive.
passThroughFlexors / pf unicode ../../../_images/query.gif
  Sets the state of flexor pass through. Valid values are on, off, interactive.
passThroughLattice / pl unicode ../../../_images/query.gif
  Sets the state of lattice deformer pass through. Valid values are on, off, interactive.
passThroughPaintEffects / pp unicode ../../../_images/query.gif
  Sets the state of paint effects pass through. Valid values are on, off, interactive.
passThroughSculpt / ps unicode ../../../_images/query.gif
  Sets the state of sculpt deformer pass through. Valid values are on, off, interactive.
passThroughWire / pw unicode ../../../_images/query.gif
  Sets the state of wire deformer pass through. Valid values are on, off, interactive.
skipHierarchyTraversal / sht bool ../../../_images/query.gif
  When enabled, hierarchy traversal of invisible objects in the scene will be disabled in order to increase performance however this has a side effect of performing redundant viewport refreshes on certain actions such as manipulations, start/end of playback, idle refresh calls, etc.
useClusterResolution / ucr unicode ../../../_images/query.gif
  Sets the state of cluster deformer global resolution. This allows clusters to be calculated at a lower resolution. Valid values are on, off, interactive.
useLatticeResolution / ulr unicode ../../../_images/query.gif
  Sets the state of lattice deformer global resolution. This allows lattices to be calculated at a lower resolution. Valid values are on, off, interactive. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.performanceOptions

Example:

import pymel.core as pm

# Disable the generation of stitch surfaces
pm.performanceOptions( ds=1 )

# Put sculpt deformers into pass-through mode during interaction/playback
pm.performanceOptions( ps='interactive' )