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.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
caching (cch) | bool | ||
|
|||
constructionHistory (ch) | bool | ||
|
|||
curveOnSurface (cos) | bool | ||
|
|||
firstSurface (fs) | bool | ||
|
|||
name (n) | unicode | ||
|
|||
nodeState (nds) | int | ||
|
|||
object (o) | bool | ||
|
|||
tolerance (tol) | float | ||
|
Derived from mel command maya.cmds.intersect
Example:
import pymel.core as pm
# 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):
pm.intersect( cos=True )
# Intersect the nurbs sphere and nurbs plane, creating a curve-on-surface
# on each surface:
pm.intersect( 'nurbsSphere1', 'nurbsPlane1', fs=True )