Creating a module package

Modules are a way of packaging and distributing Maya add-ons.

Most Maya add-ons will include files such as scripts and icons in addition to the plug-in file. To distribute these files, the full zipped directory is packaged in a module along with a module file that describes how the files are to be used on different platforms.

To create a module:

  1. Create a directory for your module
  2. Create the following subdirectories:
    • icons
    • plug-ins
    • presets
    • scripts
  3. Add any icons used in your add-on to the icons directory
  4. Add C++ or Python plug-ins to the plug-ins directory
  5. Add presets to the presets directory
  6. Add any MEL or Python scripts to the scripts directory
  7. Create a module description file
  8. Add the module description file to the

The module description file contains information about the location of the plug-in files. See the section on module description files and the sample module definition file for information on creating a module description file,

Once your module directory is complete, compress it and distribute it.