pymel.core.modeling.polyToSubdiv

polyToSubdiv(*args, **kwargs)

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.

Flags:
Long name (short name) Argument Types Properties
absolutePosition (ap) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

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 ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

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 ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node caching mode. See the node documentation for more information.Note:For advanced users only.
constructionHistory (ch) bool ../../../_images/create.gif
 
Turn the construction history on or off (where applicable)
maxEdgesPerVert (me) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The maximum allowed valence for a vertex on the input meshDefault:32
maxPolyCount (mpc) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
The maximum number of polygons accepted on the input mesh.Default:1000
name (n) unicode ../../../_images/create.gif
 
Name the resulting object
nodeState (nds) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node state. See the node documentation for more information.Note:For advanced users only.Common flags
object (o) bool ../../../_images/create.gif
 

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.

| .. |
pvo)** | bool | .. image:: /images/create.gif |
| | .. image:: /images/query.gif |
| | .. image:: /images/edit.gif |
 
Preserve vertex ordering in conversionDefault:true
quickConvert (qc) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Debug flag to test the performanceDefault:trueAdvanced flags
uvPoints (uvp) float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
This is a cached uv point needed to transfer uv data associated with finer level vertices (when switching between standard editing mode and poly proxy mode.
uvPointsU (uvu) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
U value of a cached uv point
uvPointsV (uvv) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
V value of a cached uv point
uvTreatment (uvt) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Treatment of Subd UVs when in proxy mode: 0 - preserve Subd UVs1 - build Subd UVs from Poly UVs2 - no UVs on SubdDefault:0

Derived from mel command maya.cmds.polyToSubdiv

Example:

import pymel.core as pm

import maya.cmds as cmds

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

Previous topic

pymel.core.modeling.polySubdivideFacet

Next topic

pymel.core.modeling.polyTorus

Core

Core Modules

Other Modules

This Page