This command converts a takes a subdivision surface, passed as the argument, and produces a subdivision surface with a number of hierarchy levels “removed”. Returns the name of the subdivision surface created and optionally the DG node that does the conversion.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
caching (cch) | bool | ||
|
|||
constructionHistory (ch) | bool | ||
|
|||
level (l) | int | ||
|
|||
name (n) | unicode | ||
|
|||
nodeState (nds) | int | ||
|
|||
object (o) | bool | ||
Create the result, or just the dep. node (where applicable)Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
Derived from mel command maya.cmds.subdCollapse
Example:
import pymel.core as pm
import maya.cmds as cmds
# To create a new subd surface whose level 0 (base mesh) matches
# the level 3 vertices of the given surface.
pm.subdCollapse( 'subdivShape1', level=3 )