Go to: Synopsis. Return value. Related. Flags. MEL examples.

Synopsis

subdCollapse [-caching boolean] [-constructionHistory boolean] [-level int] [-name string] [-nodeState int] [-object boolean] [string]

subdCollapse is undoable, queryable, and editable.

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.

Return value

string[]The subd surface and optionally the dependency node name

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

Related

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

Flags

caching, constructionHistory, level, name, nodeState, object
Long name (short name) Argument types Properties
-level(-l) int createqueryedit
The level which will now become the base mesh
Default: 0
Advanced flags
-caching(-cch) boolean createqueryedit
Modifies the node caching mode. See the node documentation for more information.
Note: For advanced users only.
-nodeState(-nds) int createqueryedit
Modifies the node state. See the node documentation for more information.
Note: For advanced users only.
Common flags
-name(-n) string create
Name the resulting object
-constructionHistory(-ch) boolean create
Turn the construction history on or off (where applicable)
-object(-o) boolean create
Create the result, or just the dep. node (where applicable)

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 be used more than once in a command.

MEL examples

// To create a new subd surface whose level 0 (base mesh) matches
// the level 3 vertices of the given surface.
subdCollapse -level 3 subdivShape1;