pymel.core.modeling.subdivDisplaySmoothness¶
- subdivDisplaySmoothness(*args, **kwargs)¶
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.
Flags:
Long Name / Short Name Argument Types Properties all / boolean If set, change smoothness for all subdivision surfaces smoothness / s int Smoothness - 1 rough, 2 medium, 3 fine Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.subdivDisplaySmoothness
Example:
import pymel.core as pm pm.subdivDisplaySmoothness( s=0 )# Set smoothness to hull for selected subdivs pm.subdivDisplaySmoothness( s=1 )# Set smoothness to rough for selected subdivs pm.subdivDisplaySmoothness( s=2 )# Set smoothness to medium for selected subdivs pm.subdivDisplaySmoothness( s=3 )# Set smoothness to fine for selected subdivs pm.subdivDisplaySmoothness( s=1, all=True )# Set smoothness to rough for all subdivs pm.subdivDisplaySmoothness( query=True )# Query display smoothness for selected subdivs