This command toggles display options on the specified or active surfaces. Typically this command applies to NURBS or poly mesh surfaces and ignores other type of objects.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
flipNormals (flp) | bool | ||
|
|||
twoSidedLighting (two) | bool | ||
toggle if the surface should be considered two-sided. If it’s single-sided, drawing and rendering may use single sided lighting and back face cull to improve performance. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
xRay (x) | bool | ||
|
Derived from mel command maya.cmds.displaySurface
Example:
import pymel.core as pm
pm.sphere(n='mySphere1')
pm.sphere(n='mySphere2')
pm.displaySurface( ['mySphere1', 'mySphere2'], two=False )
pm.displaySurface( xRay=True )