This command converts poly components from one or more types to another one or more types, and returns the list of the conversion. It doesn’t change anything of the current database.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
border (bo) | bool | ||
Indicates that the converted components must be on the border of the selection. If it is not provided, the converted components will be the related ones. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
fromEdge (fe) | bool | ||
fromFace (ff) | bool | ||
fromUV (fuv) | bool | ||
fromVertex (fv) | bool | ||
fromVertexFace (fvf) | bool | ||
|
|||
internal (internal) | bool | ||
Indicates that the converted components must be totally envolved by the source components. E.g. a converted face must have all of its surrounding vertices being given. If it is not provided, the converted components will be the related ones. |
|||
toEdge (te) | bool | ||
toFace (tf) | bool | ||
toUV (tuv) | bool | ||
toVertex (tv) | bool | ||
toVertexFace (tvf) | bool | ||
|
Derived from mel command maya.cmds.polyListComponentConversion
Example:
import pymel.core as pm
# Convert the vertices to envolved poly face(s) and list results.
pm.polyListComponentConversion( 'plg.vtx[5:6]', 'plg.vtx[9:10]', fv=True, tf=True, internal=True )
plg.f[4]
# Convert anything to related poly face(s) and list results.
pm.polyListComponentConversion( 'plg.vtx[0]', 'plg.vtx[3]', 'plg.vtx[8]', tf=True )
plg.f[0] plg.f[2] plg.f[3] plg.f[6]
# Convert an object to faces and list results.
pm.polyListComponentConversion( 'plg', tf=True )
plg.f[*]
# Convert vertices to faces on selectionList and list results.
pm.select( 'plg.vtx[0]', 'plg.vtx[3]', 'plg.vtx[8]', r=True )
pm.polyListComponentConversion( fv=True, tf=True )
plg.f[0] plg.f[2] plg.f[3] plg.f[6]