pymel.core.modeling.polyConnectComponents

polyConnectComponents(*args, **kwargs)

Splits polygon edges according to the selected components. The selected components are gathered into connected ‘paths’ that define continuous splits. Mixed components (vertices, edges and faces) can be used at once. The connection rules are: * Edges can connect to other edges in the same face or to vertices in the same face (that are not in the edge itself) or to faces connected to other edges in the same face. * Vertices can connect to edges (as above) or to vertices in the same face (that are not joined to the first vertex by an edge) or to faces adjacent to a face that uses the vertex (except those that also use the vertex). * Faces can connect to vertices or edges (as above) or to adjacent faces.

Flags:
Long name (short name) Argument Types Properties
caching (cch) bool ../../../_images/create.gif ../../../_images/edit.gif
 
Toggle caching for all attributes so that no recomputation is needed
constructionHistory (ch) bool ../../../_images/create.gif ../../../_images/query.gif
 

Turn the construction history on or off (where applicable). If construction history is on then the corresponding node will be inserted into the history chain for the mesh. If construction history is off then the operation will be performed directly on the object. Note:If the object already has construction history then this flag is ignored and the node will always be inserted into the history chain.

name (n) unicode ../../../_images/create.gif
 
Give a name to the resulting node.
nodeState (nds) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

Defines how to evaluate the node. 0: Normal1: PassThrough2: Blocking3: Internally disabled. Will return to Normal state when enabled4: Internally disabled. Will return to PassThrough state when enabled5: Internally disabled. Will return to Blocking state when enabledFlag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.polyConnectComponents

Example:

import pymel.core as pm

# make a sphere
pm.polySphere( r=1, sx=20, sy=20, ax=(0,1,0), cuv=2, ch=1, name='sph' )
# split two faces by specifying 3 vertices
pm.polyConnectComponents( 'sph.vtx[254]', 'sph.vtx[256]', 'sph.vtx[275]', ch=1 )
# split two faces by specifying 3 edges
pm.polyConnectComponents( 'sph.e[278]', 'sph.e[637:638]', ch=1 )
# split three faces
pm.polyConnectComponents( 'sph.f[66]', 'sph.f[215:217]', ch=1 )
# a complex split involving vertices, edges and faces, in a loop
pm.polyConnectComponents( 'sph.f[270:271]', 'sph.vtx[273]', 'sph.e[232]', 'sph.e[252]',  'sph.e[592]', 'sph.f[210]', 'sph.vtx[229]', 'sph.e[249]', 'sph.e[269]', ch=1 )

Previous topic

pymel.core.modeling.polyCone

Next topic

pymel.core.modeling.polyCopyUV

Core

Core Modules

Other Modules

This Page