移動先: 概要 戻り値 フラグ. 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」はロケータの位置に一致しようとします。

この引数はカーブ位置を表します

戻り値

string[]オブジェクト名、およびノード名。

戻り値の型は照会モードでは照会フラグが基になります。

フラグ

caching, constructionHistory, name, nodeState, object, pointConstraintUVW, pointWeight, position, replaceOriginal, weight
ロング ネーム(ショート ネーム) 引数型 プロパティ
pointConstraintUVW(puv) [float, float, float] createqueryedit
NURBS 入力オブジェクト上のポイント コンストレインのパラメータ空間における位置
pointWeight(pw) float createqueryedit
ポイント コンストレインのウェイトです。コンストレインが NURBS 入力オブジェクトに与える影響の度合いを定義します。
デフォルト: 1.0
高度なフラグ
caching(cch) boolean createqueryedit
ノード キャッシング モードを修正します。詳細については、ノードの説明を参照してください。
: 上級ユーザ向けの機能です。
nodeState(nds) int createqueryedit
ノード状態を修正します。詳細については、ノードの説明を参照してください。
: 上級ユーザ向けの機能です。
position(p) [float, float, float] create
指定したパラメータ空間コンポーネントにある、 NURBS オブジェクトの空間での新しい位置です。指定しないと、NURBS オブジェクト上の パラメータ空間コンポーネントで評価した位置になります。
weight(w) float create
lsq コンストレインのウェイト。ウェイトが大きいほど、スクエア コンストレインはゆるやかになります。
一般的なフラグ
name(n) string create
作成されたオブジェクトに名前を付けます。
constructionHistory(ch) boolean create
コンストラクション ヒストリをオンまたはオフにします。
object(o) boolean create
結果のオブジェクト、またはディペンデンシー ノードのみを作成します。
replaceOriginal(rpo) boolean create
「同じ位置」に作成(つまり置き換え)します。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : タプルまたはリストとして渡された複数の引数を持てるフラグ

Python 例

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 )