Go to: Synopsis. Return value. Python examples.

Synopsis

toggleDisplacement( [objects] )

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

toggleDisplacement is undoable, NOT queryable, and NOT editable.

This command toggles the displacement preview of the polygon. This command is NOT un-doable.

Return value

None

Python examples

import maya.cmds as cmds

# Toggle the displacement preview of the selected polygons.
cmds.toggleDisplacement()