Go to: Synopsis. Return value. Related. Flags. Python examples.

Synopsis

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

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

getInputDeviceRange is undoable, NOT queryable, and NOT editable.

This command lists the minimum and maximum values the device axis can return. This value is the raw device values before any mapping is applied. If you don't specify an axis the values for all axes of the device are returned.

Return value

float[]Command result

Related

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

Flags

maxValue, minValue
Long name (short name) Argument types Properties
maxValue(max) boolean create
list only the maximum value of the axis
minValue(min) boolean create
list only the minimum value of the axis

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

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.