pymel.core.system.getInputDeviceRange

static system.getInputDeviceRange(*args, **kwargs)

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:
Long name (short name) Argument Types Properties
maxValue (max) bool ../../../_images/create.gif
 
list only the maximum value of the axis Flag can have multiple arguments, passed either as a tuple or a list.
minValue (min) bool ../../../_images/create.gif
 
list only the minimum value of the axis

Derived from mel command maya.cmds.getInputDeviceRange

Example:

import pymel.core as pm

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

# This will return an array containing the maximum values for
# all of the spaceball axes.
pm.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.

Previous topic

pymel.core.system.getFileList

Next topic

pymel.core.system.getModifiers

Core

Core Modules

Other Modules

This Page