ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
polyProjectCurve(
curve poly
, [addUnderTransform=boolean], [caching=boolean], [direction=[linear, linear, linear]], [directionX=linear], [directionY=linear], [directionZ=linear], [nodeState=int], [tolerance=linear])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
polyProjectCurve は、取り消し可能、照会可能、および編集可能です。
polyProjectCurve コマンドは、選択したカーブを選択したポリゴン メッシュに投影することによりカーブを作成します。投影方向は、-direction/-d フラグを使って方向ベクトルを指定しない限り、現在選択しているビューの方向に一致します。
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
projectCurve
addUnderTransform, caching, direction, directionX, directionY, directionZ, nodeState, tolerance
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# create a poly plane in the z axis
poly = cmds.polyPlane(w=10, h=10, sx=10, sy=10, ax=(0,0,1), cuv=2, ch=1)
# create a nurbs circle also in the z axis
nurbs = cmds.circle(ch=1, o=1, r=2, nr=(0,0,1))
# and project it onto the poly plane along the z axis
results = cmds.polyProjectCurve(poly[0], nurbs[0], direction=(0,0,1))