pymel.core.modeling.subdCleanTopology

subdCleanTopology(*args, **kwargs)

Command cleans topology of subdiv surfaces - at all levels. It cleans the geometry of vertices that satisfy the following conditions: - Zero edits - Default uvs (uvs obtained by subdividing parent face). - No creases.

Derived from mel command maya.cmds.subdCleanTopology

Example:

import pymel.core as pm

# To clean topology of two subdiv surfaces.
pm.subdCleanTopology( 'surface', 'surface2' )