Go to: Synopsis. Return value. Related. Flags. MEL examples.
enableDevice [-apply] [-device string] [-enable boolean] [-monitor] [-record]
enableDevice is undoable, queryable, and NOT editable.
Sets (or queries) the device enable state for actions involving the device.
- -monitor
- affects all assignInputDevice and attachDeviceAttr actions for
the named device
- -record
- controls 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 "child" channels -- treating them as disabled.
None
In query mode, return type is based on queried flag.
applyTake, defineDataServer, defineVirtualDevice, filter, movIn, movOut, readTake, recordDevice, writeTake
apply, device, enable, monitor, record
Long name (short name) |
Argument types |
Properties |
|
-apply(-a)
|
|
|
|
enable/disable "applyTake" for the specified channel(s)
|
|
-device(-d)
|
string
|
|
|
specifies the device to change
|
|
-enable(-en)
|
boolean
|
|
|
enable (or disable) monitor/record/apply
|
|
-monitor(-m)
|
|
|
|
enables/disables visible update for the device (default)
|
|
-record(-rec)
|
|
|
|
enable/disable "recordDevice" device recording
|
|
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 be used more than once in a command.
|
// Enables all assignInputDevice and attachDeviceAttr actions for the
// device named "clock"
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"
enableDevice -enable false -d clock -apply minutes hours;