The following instructions are common for all of the Linux, Windows, and Mac OS X platforms.
Place your plug-in files in the /plug-ins folder.
If your plug-in contains scripts, place your scripts files in the /scripts folder.
If your plug-in contains icons, place your icon files in the /icons folder.
For more information about the Maya.env file, including the location to which it should be saved on each platform, see Setting environment variables using Maya.env. Using Maya.env makes it easy to set up the same runtime environment on another system by simply copying the file. You can still set explicit values for these variables on the command line and they are prepended to the values given in Maya.env.
As an alternative to setting environment variables to point to the plug-in's files, you can instead copy your plug-in/scripts/icons files to the directories pointed to by Maya by default. The easiest way to see what those directories are is to use the getenv command from within Maya's Script Editor. For example,
getenv MAYA_PLUG_IN_PATH
As a third option, you can also use click the Browse button in the Plug-in Manager to navigate to your plug-in.
The environment variable, MAYA_APP_DIR, can be used to help find the Maya.env file. If this variable is not set, Maya looks in this directory:
In addition, if you have multiple versions of Maya installed on your system, you can put your Maya.env file in a versioned subdirectory of either the directory pointed to by the MAYA_APP_DIR environment variable or this directory:
For example, if you set MAYA_APP_DIR to be /usr/mydir, you can create a Maya.env file in the directory /usr/mydir/<version> that will only be used when the specified version of Maya is run (for example, a directory /usr/mydir/2018 for Maya 2018). If you do not set MAYA_APP_DIR, you can put your version-specific Maya.env file in the following:
For information regarding building plug-ins, see:
For information regarding distributing Maya plug-ins and modules, see: