Go to: Synopsis. Return value. Related. Flags. Python examples.
intersect(
[surface] [surface]
, [caching=boolean], [constructionHistory=boolean], [curveOnSurface=boolean], [firstSurface=boolean], [name=string], [nodeState=int], [object=boolean], [tolerance=linear])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
intersect is undoable, queryable, and editable.
The intersect command creates a curve on surface where all surfaces
intersect with each other. By default, the curve on surface is created
for both surfaces. However, by using the -fs flag, only the first
surface will have a curve on surface. Also, the intersection curve
can be created as a 3D curve rather than a curve on surface.
string[] | Object name and node name |
In query mode, return type is based on queried flag.
curveOnSurface, duplicateCurve, projectCurve
caching, constructionHistory, curveOnSurface, firstSurface, name, nodeState, object, tolerance
Long name (short name) |
Argument types |
Properties |
|
firstSurface(fs)
|
boolean
|
|
|
Creates a curve-on-surface on the first surface only or
on all surfaces (default).
|
|
tolerance(tol)
|
linear
|
|
|
Tolerance to fit to.
Default: 0.01
|
|
Common flags |
constructionHistory(ch)
|
boolean
|
|
|
Turn the construction history on or off.
|
|
curveOnSurface(cos)
|
boolean
|
|
|
If possible, create 2D curve as a result.
|
|
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.
|
|
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
# Intersect the two active surfaces and create the resulting curve on
# surface as a 3D curve (note: only one 3D curve is created for each
# pair of intersecting surfaces):
cmds.intersect( cos=True )
# Intersect the nurbs sphere and nurbs plane, creating a curve-on-surface
# on each surface:
cmds.intersect( 'nurbsSphere1', 'nurbsPlane1', fs=True )