pymel.core.general.toggleDisplacement

toggleDisplacement(*args, **kwargs)

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

Derived from mel command maya.cmds.toggleDisplacement

Example:

::

import pymel.core as pm

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