Go to: Synopsis. Return value. Related. Flags. MEL examples.
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.
assignInputDevice, attachDeviceAttr, detachDeviceAttr, devicePanel, getInputDeviceRange, getModifiers, listInputDeviceAxes, listInputDeviceButtons, listInputDevices, recordAttr, setAttrMapping, setInputDeviceMapping, unassignInputDevice
attribute, axis, clutch, device, file, selection, write
Long name (short name) |
Argument types |
Properties |
|
-attribute(-at)
|
string
|
|
|
specify the attribute attachments to list
|
|
-axis(-ax)
|
string
|
|
|
specify the axis attachments to list
|
|
-clutch(-c)
|
string
|
|
|
List only attachment clutched with this button
|
|
-device(-d)
|
string
|
|
|
specify which device attachments to list
|
|
-file(-f)
|
string
|
|
|
Specify the name of the file to write out device
attachments.
|
|
-selection(-sl)
|
|
|
|
This flag list only attachments on selection
|
|
-write(-w)
|
|
|
|
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.
|
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;