Your Ad Here

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

Synopsis

getInputDeviceRange [-maxValue] [-minValue]

getInputDeviceRange is undoable, queryable, and 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.

Flags

maxValue, minValue
Long name (short name) [argument types] Properties
-minValue(-min)
list only the minimum value of the axis
-maxValue(-max)
list only the maximum 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

Return value


double[]

Related

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

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.

  

Return to Autodesk Index


Your Ad Here