This command converts a polygon and produces a subd surface. The name of the new subdivision surface is returned. If construction history is ON, then the name of the new dependency node is returned as well.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
absolutePosition (ap) | bool | ||
If true, the possible blind data information that comes from the polygon will be treated as absolute positions of the vertices, instead of the relative offsets. You most likelly just want to use the default of false, unless you know that the blind data has the absolute positions in it.Default:false |
|||
addUnderTransform (aut) | bool | ||
applyMatrixToResult (amr) | bool | ||
If true, the matrix on the input geometry is applied to the object and the resulting geometry will have identity matrix on it. If false the conversion is done on the local space object and the resulting geometry has the input object’s matrix on it.Default:true |
|||
caching (cch) | bool | ||
|
|||
constructionHistory (ch) | bool | ||
|
|||
maxEdgesPerVert (me) | int | ||
|
|||
maxPolyCount (mpc) | int | ||
|
|||
name (n) | unicode | ||
|
|||
nodeState (nds) | int | ||
|
|||
object (o) | bool | ||
Create the result, or just the dep. node (where applicable)Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
preserveVertexOrdering (pvo) | bool | ||
|
|||
quickConvert (qc) | bool | ||
|
|||
uvPoints (uvp) | float, float | ||
|
|||
uvPointsU (uvu) | float | ||
|
|||
uvPointsV (uvv) | float | ||
|
|||
uvTreatment (uvt) | int | ||
|
Derived from mel command maya.cmds.polyToSubdiv
Example:
import pymel.core as pm
# To create a new subdivision surface from a polygon:
pm.polyToSubdiv( 'polySphere1' )
# To create a new subdivision surface from a polygon with history so that
# the tesselation can be edited afterwards:
pm.polyToSubdiv( 'polySphere1', ch=True )