This command sets/queries the state of global display parameters. In query mode, return type is based on queried flag.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
activeObjectPivots (aop) | bool | ||
|
|||
displayAffected (da) | bool | ||
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 | ||
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. |
|||
ghostFrames (gf) | int, int, int | ||
|
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 | ||
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 | ||
|
|||
regionOfEffect (roe) | bool | ||
|
|||
shadeTemplates (st) | bool | ||
|
|||
textureDrawPixel (tdp) | bool | ||
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. |
|
Derived from mel command maya.cmds.displayPref
Example:
import pymel.core as pm
import maya.cmds as cmds
# 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' )