pymel.core.general.displaySurface — PyMEL 1.0.7 documentation

pymel.core.general.displaySurface

displaySurface(*args, **kwargs)

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.

Flags:

Long Name / Short Name Argument Types Properties
flipNormals / flp bool ../../../_images/query.gif
 
flip normal direction on the surface
twoSidedLighting / two bool ../../../_images/query.gif
 

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 ../../../_images/query.gif
 
toggle X ray mode (make surface transparent)

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 )