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

概要

flow [-divisions uint uint uint] [-localCompute boolean] [-localDivisions uint uint uint] [-objectCentered boolean] objects

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

flow コマンドは、モーション パス アニメーションのカーブに沿ってアニメートされるオブジェクトを「ベンドする」デフォメーション ラティスを作成します。 モーション パス アニメーションには、オンに設定するための追従オプションがなければなりません。

戻り値

string[]作成されたフロー ノードと関連するラティス ノードの名前です。

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

フラグ

divisions, localCompute, localDivisions, objectCentered
ロング ネーム(ショート ネーム) 引数型 プロパティ
-divisions(-dv) uint uint uint query
このフラグは x、y、z におけるラティス スライスの数を指定します。
デフォルト値は 2 5 2 です。
照会すると TuInt32 TuInt32 TuInt32 を返します。
-localCompute(-lc) boolean query
このフラグは、オブジェクト デフォメーションにローカル コントロールを持たせるかどうかを指定します。
デフォルト値: ラティスがカーブの周りにあるときはオンで、オブジェクトの周りにあるときはオフです。
照会すると boolean を返します。
-localDivisions(-ld) uint uint uint query
このフラグは影響範囲を指定します。
デフォルト値は 2 2 2 です。
照会すると TuInt32 TuInt32 TuInt32 を返します。
-objectCentered(-oc) boolean query
このフラグは選択したオブジェクトの中心の周りにラティスを作成するか、またはカーブの周りにラティスを作成するかを指定します。
デフォルトは true です。
照会すると boolean を返します。

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

MEL 例

// Create a simple motion path animation

// create a path, e,g, a curve
string $path = `curve -d 3 -p -10 0 0 -p -6 0 10 -p -3 0 -10 -p 10 0 0 -k 0 -k 0 -k 0  -k 1 -k 1 -k 1`;

// create an object, e.g. a sphere
string $object[] = `sphere -ch off -axis 0 1 0`;
scale 0.5 2.0 0.2;

// animate the object using a motion path with follow on for 30 frames
pathAnimation -f 1 -stu 0 -etu 30 -c $path $object[0];

// select only the animated object
select -r $object[0];

// Create flow deformation on the selected object with default values:
flow;

// Create flow deformation on the selected object with
// the lattice around the path, and lattice division of 3,20,2:
flow -oc off -dv 3 20 2;

// Create flow deformation on the selected object with
// lattice subdivisions 4, 7, and 3:

flow -dv 4 7 3;

// When the object is not currently selected, the name of the object
// has to be specified in the command line (note: $object[0] has to
// have a motion path animation):

flow -dv 4 7 3 $object[0];