pymel.core.system.listInputDevices

listInputDevices(*args, **kwargs)

This command lists all input devices that maya knows about.

Dynamic library stub function

Flags:

Long Name / Short Name Argument Types Properties
free / f bool ../../../_images/create.gif
  List the free devices
primary / p bool ../../../_images/create.gif
  List the primary devices
secondary / s bool ../../../_images/create.gif
  List the secondary devices Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.listInputDevices

Example:

import pymel.core as pm

# Returns a list of devices.
pm.listInputDevices()
# Result: [u'melvin', u'virtualClock'] #