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

Synopsis

listInputDevices([free=boolean], [primary=boolean], [secondary=boolean])

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

listInputDevices is undoable, NOT queryable, and NOT editable.

This command lists all input devices that maya knows about.

Return value

string[]Command result

Related

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

Flags

free, primary, secondary
Long name (short name) Argument types Properties
free(f) boolean create
List the free devices
primary(p) boolean create
List the primary devices
secondary(s) boolean create
List the secondary devices

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

# Returns a list of devices.
cmds.listInputDevices()