Go to: Synopsis. Return value. Flags. Python examples.
globalStitch(
surface surface...
, [caching=boolean], [lockSurface=boolean], [maxSeparation=linear], [modificationResistance=float], [nodeState=int], [sampling=int], [stitchCorners=int], [stitchEdges=int], [stitchPartialEdges=boolean], [stitchSmoothness=int])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
globalStitch is undoable, queryable, and editable.
This command computes a globalStitch of NURBS surfaces. There
should be at least one NURBS surface. The
NURBS surface(s) should be untrimmed.
string[] | Object name and node name |
In query mode, return type is based on queried flag.
caching, lockSurface, maxSeparation, modificationResistance, nodeState, sampling, stitchCorners, stitchEdges, stitchPartialEdges, stitchSmoothness
Long name (short name) |
Argument types |
Properties |
|
lockSurface(lk)
|
boolean
|
|
|
Keep the NURBS surface at the specified multi index unchanged by the fitting.
Default: false
|
|
maxSeparation(ms)
|
linear
|
|
|
Maximum separation that will still be stitched.
Default: 0.1
|
|
modificationResistance(mr)
|
float
|
|
|
Modification resistance weight for surface CVs.
Default: 1e-1
|
|
sampling(sam)
|
int
|
|
|
Sampling when stitching edges.
Default: 1
|
|
stitchCorners(sc)
|
int
|
|
|
Stitch corners of surfaces.
0 - off
1 - closest point
2 - closest knot
Default: 1
|
|
stitchEdges(se)
|
int
|
|
|
Stitch edges of surfaces.
0 - off
1 - closest point
2 - matching params
Default: 1
|
|
stitchPartialEdges(spe)
|
boolean
|
|
|
Toggle on (off) partial edge stitching.
Default: false
|
|
stitchSmoothness(ss)
|
int
|
|
|
Set type of smoothness of edge join.
0 - off
1 - tangent
2 - normal
Default: 0
|
|
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
# GlobalStitch across three surfaces surface1, surface2, surface3.
cmds.globalStitch( 'surface1', 'surface2', 'surface3', ch=True )