移動先: 概要 戻り値 フラグ. MEL 例.
uniform [-attenuation float] [-directionX float] [-directionY float] [-directionZ float] [-magnitude float] [-maxDistance linear] [-name string] [-perVertex boolean] [-position linear linear linear]
selectionList
uniform は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。
均一フィールドは一定の方向にオブジェクトを押します。フィールドの影響力はフィールドの場所からオブジェクトまでの距離に従って変化しますが、フィールドの方向は変わりません。
このトランスフォームは関連付けられたディペンデンシー ノードです。
connectDynamic を使用して、フィールドがダイナミック オブジェクトに影響を及ぼすようにします。
フィールドを作成すると、このコマンドは各フィールドの名前を返します。フィールドを照会すると、その結果を返します。フィールドを編集すると、フィールド名を返します。
オブジェクト名が提供されるか、アクティブなセレクション リストが空でない場合、このコマンドはリスト内の全オブジェクトのフィールドを作成し、addDynamic を呼び出してオブジェクトに追加します。リストが空の場合、コマンドのデフォルトは -pos 0 0 0 です。
コマンド ラインにオブジェクトを指定して -pos フラグを設定すると、エラーになります。
戻り値の型は照会モードでは照会フラグが基になります。
attenuation, directionX, directionY, directionZ, magnitude, maxDistance, name, perVertex, position
: コマンドの作成モードで使用可能なフラグ
|
: コマンドの編集モードで使用可能なフラグ
|
: コマンドの照会モードで使用可能なフラグ
|
: 1 つのコマンドで複数回使用可能なフラグ
|
uniform -dx 0 -dy 1.0 -dz 0.5;
// Creates a uniform field pushing in direction (0,1,0.5) for every
// active selection. If there is no active selection, it creates this
// field at world position (0,0,0).
uniform -e -att 0.98 uniformF;
// edits the acceleration value of the field uniformF
uniform -q -att uniformF;
// queries uniformF for its acceleration value