ジャンプ先: 概要. 戻り値. フラグ. Python 例.
pointCurveConstraint(
selectionItem
, [caching=boolean], [constructionHistory=boolean], [name=string], [nodeState=int], [object=boolean], [pointConstraintUVW=[float, float, float]], [pointWeight=float], [position=[float, float, float]], [replaceOriginal=boolean], [weight=float])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
pointCurveConstraint は、取り消し可能、照会可能、および編集可能です。
NURBS カーブを直接操作できます。NURBS カーブ上で指定したパラメータ位置に位置制限を適用し、NURBS カーブを直接操作します。
コマンドのコンストラクション ヒストリを有効にすると、ロケータが作成され、後でカーブをインタラクティブに操作できるようになります。ロケータの位置はキーフレーム化されるかトランスフォームされ、「curve1」はロケータの位置に一致しようとします。
この引数はカーブ位置を表します
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
caching, constructionHistory, name, nodeState, object, pointConstraintUVW, pointWeight, position, replaceOriginal, weight
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# Apply a constraint to manipulate the position corresponding to
# the 1st edit point on curve1.
cmds.pointCurveConstraint( 'curve1.ep[1]', ch=True )
# Apply a constraint to manipulate the end point on curve1.
cmds.pointCurveConstraint( 'curve1.un[1.0]', ch=True, w=1.0 )
# Apply a constraint around the midpoint in the parameter domain on curve1.
cmds.pointCurveConstraint( 'curve1.un[0.5]', ch=True, w=-1.0 )