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 appear in Create mode of commandFlag 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

import maya.cmds as cmds

pm.sphere(n='mySphere1')
pm.sphere(n='mySphere2')
pm.displaySurface( ['mySphere1', 'mySphere2'], two=False )
pm.displaySurface( xRay=True )

Previous topic

pymel.core.general.displayStats

Next topic

pymel.core.general.distanceDimension

Core

Core Modules

Other Modules

This Page