ジャンプ先: 概要. 戻り値. フラグ. MEL 例.

概要

curveEditorCtx [-direction int] [-exists] [-history boolean] [-image1 string] [-image2 string] [-image3 string] [-name string] [-relativeTangentSize float] [-title string]

curveEditorCtx は、取り消し可能、照会可能、および編集可能です。

curveEditorCtx コマンドを使うと、NURBS カーブや NURBS サーフェスの編集に使用する新しい NURBS エディタ コンテキストが作成されます。

戻り値

string(新しいコンテキストの名前)

照会モードでは、戻り値のタイプは照会されたフラグに基づきます。

フラグ

direction, exists, history, image1, image2, image3, name, relativeTangentSize, title
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
-direction(-dir) int query
接線コントロールの現在の方向を照会します。カーブの場合は常に 0 です。サーフェスの場合、法線方向は 0、U 方向は 1、V 方向は 2 です。
-exists(-ex) create
指定したオブジェクトが存在するかどうかによって、true または false を返します。他のフラグは無視されます。
-history(-ch) boolean create
ツール コマンドの場合、対象となるツールのコンストラクション ヒストリをオンにします。
-image1(-i1) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の最初のアイコンです。
-image2(-i2) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の 2 番目のアイコンです。
-image3(-i3) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の 3 番目のアイコンです。
-name(-n) string create
これがツール コマンドの場合、ツールに適切に名前を付けます。
-relativeTangentSize(-rts) float createqueryedit
接線マニピュレータ ハンドルの相対的なサイズです。サーフェスのシェイプをそのまま残すにもかかわらず、サーフェスのパラメータ設定コントロールとして接線サイズの調整に役立ちます。既定は 4 です。
-title(-t) string queryedit
ツールのタイトルです。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます コマンド内でフラグを複数回使用できます。

MEL 例

// Create a curve
curve -p 0 0 0 -p 3 5 6 -p 5 6 7 -p 9 9 9 -p 12 10 2 -k 0 -k 0 -k 0 -k 1 -k 2 -k 2 -k 2;
// Result: curve1 //

// Create a new curve editor context to modify the curve, then switch to it
// You can modify the curve using the manipulator handle
curveEditorCtx curveEditorCtx1;
setToolTo curveEditorCtx1;