pymel.core.general.displayLevelOfDetail¶
- displayLevelOfDetail(*args, **kwargs)¶
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 In query mode, return type is based on queried flag.
Flags:
Long Name / Short Name Argument Types Properties levelOfDetail / lod bool Enable/disable level of detail. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.displayLevelOfDetail
Example:
import pymel.core as pm pm.displayLevelOfDetail( lod=True ) pm.displayLevelOfDetail( lod=False ) pm.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.