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 flip normal direction on the surface 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. xRay / x bool toggle X ray mode (make surface transparent) Flag can have multiple arguments, passed either as a tuple or a list. 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 )