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

概要

arclen [-constructionHistory boolean] curve

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

ヒストリ フラグが設定されていない(デフォルト)場合、このコマンドはカーブの円弧長を返します。ヒストリ フラグが設定されている場合、円弧長を生成できるノードが作成されてコネクトされ、その名前が返されます。コンストラクション ヒストリ オプションをオンにすると、このコマンドをエクスプレッションで使う場合に便利です。

戻り値

float非ヒストリ モードでの長さ
stringヒストリ モードでのノード名

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

フラグ

constructionHistory
ロング ネーム(ショート ネーム) 引数型 プロパティ
-constructionHistory(-ch) boolean create
コンストラクション ヒストリをオンまたはオフにします(適切な場合)。

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

MEL 例

arclen curve1;
// This command returns a float value that is the length of curve1 in
// the current linear units.

string $curveInfoNode = `arclen -ch on curve1`;
expression -s ("surface1.sx = " + $curveInfoNode + ".arcLength");
// The first command produces a curve info node for curve1 and returns
// the name of the curve info node.  The second command shows how the
// arc length attribute of the curve info node can be used to set up
// an expression, ie. it drives one of the scale factors of surface1.