ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
intersect(
[surface] [surface]
, [caching=boolean], [constructionHistory=boolean], [curveOnSurface=boolean], [firstSurface=boolean], [name=string], [nodeState=int], [object=boolean], [tolerance=linear])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
intersect は、取り消し可能、照会可能、および編集可能です。
intersect コマンドでは、すべてのサーフェスが互いに交差する位置にカーブ オンサーフェスが作成されます。既定では、カーブ オンサーフェスは両方のサーフェスに作成されます。しかし、-fs フラグを使用すると、最初のサーフェスだけがカーブ オンサーフェスを持つようになります。また、交差カーブは、カーブ オンサーフェスではなく、3D カーブとして作成されます。
| string[] | オブジェクト名とノード名 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
caching(cch)
|
boolean
|
|
||||||||||
|
||||||||||||
firstSurface(fs)
|
boolean
|
|
||||||||||
|
||||||||||||
nodeState(nds)
|
int
|
|
||||||||||
|
||||||||||||
tolerance(tol)
|
linear
|
|
||||||||||
|
||||||||||||
| 共通のフラグ | ||||||||||||
constructionHistory(ch)
|
boolean
|
|
||||||||||
|
||||||||||||
curveOnSurface(cos)
|
boolean
|
|
||||||||||
|
||||||||||||
name(n)
|
string
|
|
||||||||||
|
||||||||||||
object(o)
|
boolean
|
|
||||||||||
|
||||||||||||
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 )