Your Ad Here

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

Synopsis

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

listDeviceAttachments is undoable, queryable, and 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.

Flags

attribute, axis, clutch, device, file, selection, write
Long name (short name) [argument types] Properties
-device(-d)
specify which device attachments to list
-axis(-ax)
specify the axis attachments to list
-clutch(-c)
List only attachment clutched with this button
-attribute(-at)
specify the attribute attachments to list
-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.
-file(-f)
Specify the name of the file to write out device attachments.

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

Return value


String

Related

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

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;

  

Return to Autodesk Index


Your Ad Here