pymel.core.system.getInputDeviceRange¶
- 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 list only the maximum value of the axis minValue / min bool list only the minimum value of the axis Flag can have multiple arguments, passed either as a tuple or a list. 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.