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