pymel.core.modeling.changeSubdivRegion

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 operationFlag 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.changeSubdivRegion

Example:

import pymel.core as pm

import maya.cmds as cmds

# 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 )