Create attachments script
 
 
 

To create an attribute attachments script

  1. In the device outliner, select the device, its axes, or its attachments.
  2. Under the Controls tab, click Save Attachments.
  3. Select a path and name for the attachments MEL script.
  4. Save the script to your scripts path so Maya can see it when you want to re-attach your scene.
  5. Click OK.
  6. The next time you load the scene, define the device, if needed, and run the attachments script from the Script Editor.