Go to: Synopsis. Return value. Keywords. Related. Flags. Python examples.

Synopsis

subdivDisplaySmoothness([all=boolean], [smoothness=int])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

subdivDisplaySmoothness is undoable, queryable, and NOT editable.

Sets or querys the display smoothness of subdivision surfaces on the selection list or of all subdivision surfaces if the -all option is set. Smoothness options are; rough, medium, or fine. Rough is the default.

Return value

boolean

In query mode, return type is based on queried flag.

Keywords

subdivision, surface, display, smoothness

Related

changeSubdivComponentDisplayLevel, changeSubdivRegion, createSubdivRegion, nurbsToSubdiv, polyToSubdiv, querySubdiv, refineSubdivSelectionList, subdCollapse, subdToBlind, subdToPoly, subdiv, subdivCrease

Flags

all, smoothness
Long name (short name) Argument types Properties
all() boolean createquery
If set, change smoothness for all subdivision surfaces
smoothness(s) int createquery
Smoothness - 1 rough, 2 medium, 3 fine

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

cmds.subdivDisplaySmoothness( s=0 )# Set smoothness to hull for selected subdivs
cmds.subdivDisplaySmoothness( s=1 )# Set smoothness to rough for selected subdivs
cmds.subdivDisplaySmoothness( s=2 )# Set smoothness to medium for selected subdivs
cmds.subdivDisplaySmoothness( s=3 )# Set smoothness to fine for selected subdivs
cmds.subdivDisplaySmoothness( s=1, all=True )# Set smoothness to rough for all subdivs
cmds.subdivDisplaySmoothness( query=True )# Query display smoothness for selected subdivs