Sets (or queries) the device enable state for actions involving the device. -monitoraffects all assignInputDevice and attachDeviceAttr actions for the named device-recordcontrols if the device is recorded (by default) by a recordDevice action-apply channelName [channelName ... ]controls if data from the device channel is applied (by default) by applyTake to the param curves attached to the named channel.Disabling a channel for applyTake cause applyTake to ignore the enable state of all childchannels – treating them as disabled. In query mode, return type is based on queried flag.
| Long name (short name) | Argument Types | Properties | |
|---|---|---|---|
| apply (a) | bool |     | |
| 
 | |||
| device (d) | unicode |     | |
| 
 | |||
| enable (en) | bool |     | |
| 
 | |||
| monitor (m) | bool |     | |
| 
 | |||
| record (rec) | bool |     | |
| 
 | |||
Derived from mel command maya.cmds.enableDevice
Example:
import pymel.core as pm
# Enables all assignInputDevice and attachDeviceAttr actions for the
# device named "clock"
pm.enableDevice( enable=True, d='clock' )
# Stops applyTake (with no arguments) from updating param curves
# attached to the minutes  and hours channels of device named "clock"
pm.enableDevice( 'minutes', 'hours', enable=False, d='clock', apply=True )