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

概要

getInputDeviceRange([maxValue=boolean], [minValue=boolean])

注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。

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

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

戻り値

float[]コマンドの結果

関連

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

フラグ

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

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。

Python 例

import maya.cmds as cmds

# This will return a single value which is the minimum value
# the spaceball translate:X axis can return.
cmds.getInputDeviceRange( 'spaceball', 'translate:X', min=True )

# This will return an array containing the maximum values for
# all of the spaceball axes.
cmds.getInputDeviceRange( 'spaceball', max=True )

# 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.