Go to: Synopsis. Flags. Return value. Related. Python examples.

Synopsis

displayLevelOfDetail([lod=boolean], [query=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

displayLevelOfDetail is undoable, queryable, and editable.

This command is responsible for setting the display level-of-detail for edit refreshes. If enabled, objects will draw with lower detail based on their distance from the camera. When disabled objects will display at full resolution at all times. This is not an undoable command

Flags

lod, query
Long name (short name) [argument types] Properties
query(q) boolean query
Query the state of level-of-detail display.

In query mode, this flag needs a value.

lod([true,false]) boolean
Enable/disable level of detail.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Return value


boolean when in the query mode, nothing otherwise.

Related

currentUnit, displayAffected, displayColor, displayCull, displayPref, displayRGBColor, displaySmoothness, displayStats, displaySurface, hide, refresh, showHidden, toggle

Python examples

import maya.cmds as cmds

cmds.displayLevelOfDetail( lod=True )
cmds.displayLevelOfDetail( lod=False )
cmds.displayLevelOfDetail( q=True, lod=True )
# Returns 0 if the level-of-detail display is false.
# Returns 1 if the level-of-detail display is true.