pymel.core.modeling.changeSubdivRegion

static modeling.changeSubdivRegion(*args, **kwargs)

Changes a subdivision surface region based on the command parameters. The command operates on the selected subdivision surfaces.

Flags:
Long name (short name) Argument Types Properties
action (a) int ../../../_images/create.gif
 
Specifies the action to the selection region 1 = delete selection region 2 = enlarge selection region
level (l) int ../../../_images/create.gif
 

Specify the level of the subdivision surface to perform the operation Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.changeSubdivRegion

Example:

import pymel.core as pm

# delete the selection region on the base mesh
pm.changeSubdivRegion( a=1, l=0 )
# expand the selection region at the current level
pm.changeSubdivRegion( a=2 )