Go to: Synopsis. Return value. Flags. Python examples.
stitchSurfacePoints(
selectionList
, [bias=float], [caching=boolean], [cascade=boolean], [constructionHistory=boolean], [cvIthIndex=int], [cvJthIndex=int], [equalWeight=boolean], [fixBoundary=boolean], [keepG0Continuity=boolean], [keepG1Continuity=boolean], [name=string], [nodeState=int], [object=boolean], [parameterU=float], [parameterV=float], [positionalContinuity=boolean], [replaceOriginal=boolean], [stepCount=int], [tangentialContinuity=boolean], [togglePointNormals=boolean], [togglePointPosition=boolean], [toggleTolerance=boolean], [tolerance=linear])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
stitchSurfacePoints is undoable, queryable, and editable.
The stitchSurfacePoints command aligns two or more surface points
along the boundaries together to a single point. In the process, a
node to average the points is created. The points are averaged
together in a weighted fashion. The points may be control vertices
along the boundaries. If the points are CVs then they are stitched
together only with positional continuity.
Note: No two points can lie on the same surface.
string[] | Object name and node name |
In query mode, return type is based on queried flag.
bias, caching, cascade, constructionHistory, cvIthIndex, cvJthIndex, equalWeight, fixBoundary, keepG0Continuity, keepG1Continuity, name, nodeState, object, parameterU, parameterV, positionalContinuity, replaceOriginal, stepCount, tangentialContinuity, togglePointNormals, togglePointPosition, toggleTolerance, tolerance
Long name (short name) |
Argument types |
Properties |
|
bias(b)
|
float
|
|
|
Blend CVs in between input surface and result from stitch. A value of 0.0 returns the input surface.
Default: 1.0
|
|
cvIthIndex(ci)
|
int
|
|
|
The ith boundary CV index on the input surface.
Default: -1
|
|
cvJthIndex(cj)
|
int
|
|
|
The jth boundary CV index on the input surface.
Default: -1
|
|
fixBoundary(fb)
|
boolean
|
|
|
Fix Boundary CVs while solving for any G1 constraints.
Default: false
|
|
parameterU(u)
|
float
|
|
|
The U parameter value on surface for a point constraint.
Default: -10000
|
|
parameterV(v)
|
float
|
|
|
The V parameter value on surface for a point constraint.
Default: -10000
|
|
positionalContinuity(pc)
|
boolean
|
|
|
Toggle on (off) G0 continuity at edge corresponding to multi index.
Default: true
|
|
stepCount(sc)
|
int
|
|
|
Step count for the number of discretizations.
Default: 20
|
|
tangentialContinuity(tc)
|
boolean
|
|
|
Toggle on (off) G1 continuity across edge corresponding to multi index.
Default: false
|
|
togglePointNormals(tpn)
|
boolean
|
|
|
Toggle on (off) normal point constraints on the surface.
Default: false
|
|
togglePointPosition(tpp)
|
boolean
|
|
|
Toggle on (off) position point constraints on the surface.
Default: true
|
|
toggleTolerance(tt)
|
boolean
|
|
|
Toggle on (off) so as to use Tolerance or specified steps for discretization.
Default: false
|
|
tolerance(tol)
|
linear
|
|
|
Tolerance to use while discretizing the edge.
Default: 0.1
|
|
Common flags |
cascade(c)
|
boolean
|
|
|
Cascade the created stitch node. (Only if the surface has a stitch
history)
Default is 'false'.
|
|
constructionHistory(ch)
|
boolean
|
|
|
Turn the construction history on or off.
|
|
equalWeight(ewt)
|
boolean
|
|
|
Assign equal weights to all the points being stitched together.
Default is 'true'. If false, the first point is assigned a weight of
1.0 and the rest are assigned 0.0.
|
|
keepG0Continuity(kg0)
|
boolean
|
|
|
Stitch together the points with positional continuity.
Default is 'true'.
|
|
keepG1Continuity(kg1)
|
boolean
|
|
|
Stitch together the points with tangent continuity.
Default is 'false'.
|
|
name(n)
|
string
|
|
|
Sets the name of the newly-created node. If it contains
namespace path, the new node will be created under the
specified namespace; if the namespace does not exist, it
will be created.
|
|
object(o)
|
boolean
|
|
|
Create the result, or just the dependency node.
|
|
replaceOriginal(rpo)
|
boolean
|
|
|
Create "in place" (i.e., replace).
|
|
Advanced flags |
caching(cch)
|
boolean
|
|
|
Modifies the node caching mode. See the node documentation for more information.
Note: For advanced users only.
|
|
nodeState(nds)
|
int
|
|
|
Modifies the node state. See the node documentation for more information.
Note: For advanced users only.
|
|
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 have multiple arguments, passed either as a tuple or a list.
|
import maya.cmds as cmds
# stitch together four corner control vertices to the average of the four corners.
cmds.stitchSurfacePoints( 'nurbsPlane2.cv[0][0]', 'nurbsPlane1.cv[3][0]', 'nurbsPlane4.cv[0][3]', 'nurbsPlane3.cv[3][3]', ewt=True )
# stitch together two edit points to the edit point nurbsPlane2.ep[0][0].
cmds.stitchSurfacePoints( 'nurbsPlane2.ep[0][0]', 'nurbsPlane1.ep[1][0]', ewt=False )