pymel.core.general.displayPref

displayPref(*args, **kwargs)

This command sets/queries the state of global display parameters. In query mode, return type is based on queried flag.

Flags:
Long name (short name) Argument Types Properties
activeObjectPivots (aop) bool ../../../_images/create.gif ../../../_images/query.gif
 
Sets the display state for drawing pivots for active objects.
defaultFontSize (dfs) int  
   
displayAffected (da) bool ../../../_images/create.gif ../../../_images/query.gif
 

Turns on/off the special coloring of objects that are affected by the objects that are currently in the selection list. If one of the curves in a loft were selected and this feature were turned on, then the lofted surface would be highlighted because it is affected by the loft curve.

displayGradient (dgr) bool ../../../_images/create.gif ../../../_images/query.gif
 

Set whether to display the background using a colored gradient as opposed to a constant background color.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

fontSettingMode (fm) int  
   
ghostFrames (gf) int, int, int ../../../_images/create.gif ../../../_images/query.gif
 
Sets the ghosting frame preferences: steps before, steps after and step size.
lineWidth (lw) float  
   
maxHardwareTextureResolution (mhr) bool ../../../_images/query.gif
 

Query the maximum allowable hardware texture resolution available on the current video card. This maximum can vary between different video cards and different operating systems.

maxTextureResolution (mtr) int ../../../_images/create.gif ../../../_images/query.gif
 

Sets the maximum hardware texture resolution to be used when creating hardware textures for display. The maximum will be clamped to the maximum allowable texture determined for the hardware at the time this command is invoked. Use the -maxHardwareTextureResolution to retrieve this maximum value. Existing hardware textures are not affected. Only newly created textures will be clamped to this maximum.

purgeExistingTextures (pet) bool ../../../_images/create.gif
 
Purge any existing hardware textures. This will force a re-evaluation of hardware textures used for display, and thus may take some time to evaluate.
regionOfEffect (roe) bool ../../../_images/create.gif ../../../_images/query.gif
 
Turns on/off the display of the region of curves/surfaces that is affected by changes to selected CVs and edit points.
shadeTemplates (st) bool ../../../_images/create.gif ../../../_images/query.gif
 
Turns on/off the display of templated surfaces as shaded in shaded display mode. If its off, templated surfaces appear in wireframe.
smallFontSize (sfs) int  
   
textureDrawPixel (tdp) bool ../../../_images/create.gif ../../../_images/query.gif
 

Sets the display mode for drawing image planes. True for use of gltexture calls for perspective views. This flag should not normally be needed. Image Planes may display faster on Windows but can result in some display artifacts.

wireframeOnShadedActive (wsa) unicode ../../../_images/create.gif ../../../_images/query.gif
 
Sets the display state for drawing the wireframe on active shaded objects. Possible values for the string argument are “full”, “reduced” and “none”.

Derived from mel command maya.cmds.displayPref

Example:

import pymel.core as pm

# Turn on the display of affected objects
pm.displayPref( displayAffected=True )

# Query whether affected objects will be displayed
# in a special color or not.
pm.displayPref( q=True, displayAffected=True )
1

# Turn on full wireframes on active shaded objects
pm.displayPref( wireframeOnShadedActive='full' )

Previous topic

pymel.core.general.displayLevelOfDetail

Next topic

pymel.core.general.displayRGBColor

Core

Core Modules

Other Modules

This Page