Go to: Synopsis. Return value. Python examples.

Synopsis

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.

Return value

stringarray

In query mode, return type is based on queried flag.

Python examples

import maya.cmds as cmds

cmds.excludeObjectDisplayPreset( listPresets=True )
# Result: ['All', 'None']