移動先: 概要 戻り値 関連項目. フラグ. MEL 例.

概要

getInputDeviceRange [-maxValue] [-minValue]

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

このコマンドはデバイス軸が返す最小値と最大値を表示します。この値はマッピングを適用する前の未加工のデバイス値です。軸を指定しないと、すべてのデバイス軸の値が返されます。

戻り値

float[]

関連項目

assignInputDevice, attachDeviceAttr, detachDeviceAttr, devicePanel, getModifiers, listDeviceAttachments, listInputDeviceAxes, listInputDeviceButtons, listInputDevices, recordAttr, setAttrMapping, setInputDeviceMapping, unassignInputDevice

フラグ

maxValue, minValue
ロング ネーム(ショート ネーム) 引数型 プロパティ
-minValue(-min) create
軸の最小値のみを表示します。
-maxValue(-max) create
軸の最大値のみを表示します。

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

MEL 例

// This will return a single value which is the minimum value
// the spaceball translate:X axis can return.
getInputDeviceRange -min "spaceball" "translate:X";

// This will return an array containing the maximum values for
// all of the spaceball axes.
getInputDeviceRange -max "spaceball";

// Warning:
//     Maya is dependent on the device driver or plugin to supply it with
//     the correct value.  Some device drivers don't return correct
//     information.