Go to: Synopsis. Return value. Related. Flags. Python examples.
displaySurface(
[objects...]
, [flipNormals=boolean], [twoSidedLighting=boolean], [xRay=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
displaySurface is undoable, queryable, and editable.
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.boolean when in the query mode.
In query mode, return type is based on queried flag.
| Long name (short name) | argument types | Properties | ||
|---|---|---|---|---|
flipNormals(flp)
|
boolean
|
|
||
|
||||
xRay(x)
|
boolean
|
|
||
|
||||
twoSidedLighting(two)
|
boolean
|
|
||
|
||||
import maya.cmds as cmds cmds.sphere(n='mySphere1') cmds.sphere(n='mySphere2') cmds.displaySurface( ['mySphere1', 'mySphere2'], two=False ) cmds.displaySurface( xRay=True )