Go to: Synopsis. Return value. Related. Flags. MEL examples.

Synopsis

polyConnectComponents [-caching boolean] [-constructionHistory boolean] [-name string] [-nodeState int]

polyConnectComponents is undoable, queryable, and editable.

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.

Return value

stringThe node name.

In query mode, return type is based on queried flag.

Related

polyClipboard, polyCylindricalProjection, polyEditUV, polyForceUV, polyMapCut, polyMapDel, polyMapSew, polyMoveFacetUV, polyMoveUV, polyPlanarProjection, polyProjection, polySphericalProjection, polyUVSet, untangleUV

Flags

caching, constructionHistory, name, nodeState
Long name (short name) Argument types Properties
Common flags
-caching(-cch) boolean createedit
Toggle caching for all attributes so that no recomputation is needed.
-constructionHistory(-ch) boolean createquery
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) string create
Give a name to the resulting node.
-nodeState(-nds) int createqueryedit
Defines how to evaluate the node.
  • 0: Normal
  • 1: PassThrough
  • 2: Blocking
  • 3: Internally disabled. Will return to Normal state when enabled
  • 4: Internally disabled. Will return to PassThrough state when enabled
  • 5: Internally disabled. Will return to Blocking state when enabled

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

// make a sphere
polySphere -r 1 -sx 20 -sy 20 -ax 0 1 0 -cuv 2 -ch 1 -name sph;
// split two faces by specifying 3 vertices
polyConnectComponents -ch 1 sph.vtx[254] sph.vtx[256] sph.vtx[275];
// split two faces by specifying 3 edges
polyConnectComponents -ch 1 sph.e[278] sph.e[637:638];
// split three faces
polyConnectComponents -ch 1 sph.f[66] sph.f[215:217];
// a complex split involving vertices, edges and faces, in a loop
polyConnectComponents -ch 1 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];