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

Synopsis

getInputDeviceRange [-maxValue] [-minValue]

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) create
list only the maximum value of the axis
-minValue(-min) 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 be used more than once in a command.

MEL examples

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