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:
  • activeObjectPivots : aop (bool) [create,query]

    Sets the display state for drawing pivots for active objects.

  • displayAffected : da (bool) [create,query]

    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) [create,query]

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

  • ghostFrames : gf (int, int, int) [create,query]

    Sets the ghosting frame preferences: steps before, steps after and step size.

  • maxHardwareTextureResolution : mhr (bool) [query]

    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) [create,query]

    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) [create]

    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) [create,query]

    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) [create,query]

    Turns on/off the display of templated surfaces as shaded in shaded display mode. If its off, templated surfaces appear in wireframe.

  • textureDrawPixel : tdp (bool) [create,query]

    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) [create,query]

    Sets the display state for drawing the wireframe on active shaded objects. Possible values for the string argument are full, reducedand none.

Derived from mel command maya.cmds.displayPref

Previous topic

pymel.core.general.displayLevelOfDetail

Next topic

pymel.core.general.displayRGBColor

Core

Core Modules

Other Modules

This Page