移動先: 概要 戻り値 フラグ. MEL 例.

概要

closeCurve [-blendBias float] [-blendKnotInsertion boolean] [-caching boolean] [-constructionHistory boolean] [-curveOnSurface boolean] [-name string] [-nodeState int] [-object boolean] [-parameter float] [-preserveShape int] [-replaceOriginal boolean] curve

closeCurve は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。

closeCurve コマンドはカーブを閉じて、周期カーブにします。 新しく閉じたカーブのパスの名前と、ディペンデンシー ノードの名前が返されます。このコマンドでカーブが指定されていない場合、最初のアクティブなカーブが使用されます。

戻り値

string[]オブジェクト名とノード名

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

フラグ

blendBias, blendKnotInsertion, caching, constructionHistory, curveOnSurface, name, nodeState, object, parameter, preserveShape, replaceOriginal
ロング ネーム(ショート ネーム) 引数型 プロパティ
-preserveShape(-ps) int createqueryedit
0 - シェイプの保持なし 1 - シェイプを保持 2 - ブレンド
デフォルト: 1
-blendBias(-bb) float createqueryedit
ブレンド値に応じて 1 つめまたは 2 つめのカーブの方向に結果のオブジェクトを傾斜させて、0.5 より小さいまたは 0.5 より大きい範囲に収めます。
デフォルト: 0.5
-blendKnotInsertion(-bki) boolean createqueryedit
true に設定されている場合、少し異なるエフェクトを作成するため、オリジナル カーブの 1 つ(以下のパラメータ アトリビュートで指定される相対的な位置)にノットを挿入します。
デフォルト: false
-parameter(-p) float createqueryedit
新しく挿入されたノットの位置に関するパラメータ値です。
デフォルト: 0.1
高度なフラグ
-caching(-cch) boolean createqueryedit
ノード キャッシング モードを修正します。詳細については、ノードの説明を参照してください。
: 上級ユーザ向けの機能です。
-nodeState(-nds) int createqueryedit
ノード状態を修正します。詳細については、ノードの説明を参照してください。
: 上級ユーザ向けの機能です。
一般的なフラグ
-name(-n) string create
作成されたオブジェクトに名前を付けます。
-constructionHistory(-ch) boolean create
コンストラクション ヒストリをオンまたはオフにします。
-object(-o) boolean create
結果のオブジェクト、またはディペンデンシー ノードのみを作成します。
-replaceOriginal(-rpo) boolean create
「同じ位置」に作成(つまり置き換え)します。
-curveOnSurface(-cos) boolean create
可能な場合は、2D カーブが作成されます。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : 1 つのコマンドで複数回使用可能なフラグ

MEL 例

closeCurve -ch on -ps on curve1;
// Closes curve1 with history and by preserving shape.  The result will
// be the name of the closed curve, and the name of the newly created
// dependency node.

closeCurve -ch on -ps off curve1;
// Closes curve1 with history and will not preserve the shape of the
// curve.

closeCurve -ch on -rpo on curve1;
// Closes curve1 with history and replaces the original curve with
// the closed one.