Go to: Synopsis. Return value. Python examples.
excludeObjectDisplayPreset()
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
excludeObjectDisplayPreset is undoable, queryable, and editable.
This commands creates named presets of objects that can be used with the modelEditor command to exclude objects from beind displayed in a viewport.string | array |
In query mode, return type is based on queried flag.
import maya.cmds as cmds cmds.excludeObjectDisplayPreset( listPresets=True ) # Result: ['All', 'None']