Provides useful information about the selected subdiv or components, such as the deepest subdivided level, the children or parents of the currently selected components, etc. In query mode, return type is based on queried flag.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
currentLevel (cl) | bool | ||
When queried, this flag returns an integer representing the level of the currently selected subdiv surface component(s). Returns -1, if there are more than one level of CVs are selected, (even if they are from different objects) Returns -2, if there are no input subdiv CVs to process. |
|||
currentSubdLevel (csl) | bool | ||
When queried, this flag returns an integer representing the level of the currently selected subdiv surface, regardless of whether components are selected or not. Returns -2, if there are no input subdiv CVs to process. |
|||
deepestLevel (dl) | int | ||
|
|||
displayLoad (dsl) | bool | ||
|
|||
edgeStats (est) | bool | ||
|
|||
faceStats (fst) | bool | ||
|
|||
maxPossibleLevel (mpl) | int | ||
|
|||
proxyMode (pm) | int | ||
When queried, this flag returns an integer representing whether or not the subdivision surface is in “polygon proxy” mode. “Proxy” mode allows the base mesh of a subdivision surface without construction history to be edited using the polygonal editing tools. Returns 1, if the subdivision surface is in “polygon proxy” mode. Returns 0, if the surface is not currently in “proxy” mode, but could be put into “proxy” mode since it has no construction history. (This state is also known as “standard” mode.) Returns 2, if the surface is not in “proxy” mode and cannot be put into proxy mode, as it has construction history.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
smallOffsets (so) | bool | ||
|
Derived from mel command maya.cmds.subdiv
Example:
import pymel.core as pm
# To find the deepest subdivided level of polyToSubdShape1
#
pm.subdiv( 'polyToSubdShape1', query=True, deepestLevel=True )
# To find the level of the selected subdiv CV
#
pm.select( 'polyToSubdShape1.smp[2][67108865]', r=True)
pm.subdiv( currentLevel=True )
1