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

Synopsis

listDeviceAttachments [-attribute string] [-axis string] [-clutch string] [-device string] [-file string] [-selection] [-write]

listDeviceAttachments is undoable, NOT queryable, and NOT editable.

This command lists the current set of device attachments. The listing is in the form of the commands required to recreate them. This includes both attachments and device mappings.

Return value

string

Related

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

Flags

attribute, axis, clutch, device, file, selection, write
Long name (short name) Argument types Properties
-attribute(-at) string create
specify the attribute attachments to list
-axis(-ax) string create
specify the axis attachments to list
-clutch(-c) string create
List only attachment clutched with this button
-device(-d) string create
specify which device attachments to list
-file(-f) string create
Specify the name of the file to write out device attachments.
-selection(-sl) create
This flag list only attachments on selection
-write(-w) create
Write out device attachments to a file specified by the -f flag, is set. If -f is not set, it'll write out to a file named for the device.

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.

MEL examples

listDeviceAttachments; // List all attachments

// List attachments on the spaceball that are clutched on Button1
listDeviceAttachments -d spaceball -c Button1;

// write out attachments for the spaceball device, since there is
// no file name specified, attachments will be written out to
// spaceball.mel
listDeviceAttachments -d spaceball -w;

// write out attachments for all devices, since there is not file
// name specified, attachments will be written out to devices.mel
listDeviceAttachments -w;