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 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 Modifies the node caching mode. See the node documentation for more information. Note:For advanced users only. constructionHistory / ch bool Turn the construction history on or off (where applicable). frozen / fzn bool maxEdgesPerVert / me int The maximum allowed valence for a vertex on the input mesh Default:32 maxPolyCount / mpc int The maximum number of polygons accepted on the input mesh. Default:1000 name / n unicode Name the resulting object. nodeState / nds int Modifies the node state. See the node documentation for more information. Note:For advanced users only. Flag can have multiple arguments, passed either as a tuple or a list. object / o bool Create the result, or just the depend node (where applicable). Advanced flags preserveVertexOrdering / pvo bool Preserve vertex ordering in conversion Default:true quickConvert / qc bool Debug flag to test the performance Default:true uvPoints / uvp float, float 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 U value of a cached uv point uvPointsV / uvv float V value of a cached uv point uvTreatment / uvt int Treatment of Subd UVs when in proxy mode: 0 - preserve Subd UVs1 - build Subd UVs from Poly UVs2 - no UVs on SubdDefault:0 Common flags 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 )