![]()
Loading a Plug-in
There are two ways to load and unload a plug-in. The easiest way to load a plug-in is to use the Plug-in Manager.
To load a plug-in from the Plug-in manager:
- Choose Window > Settings/Preferences > Plug-in Manager to open the Plug-in Manager window and display the list of all known plug-ins.
- Find the plug-in you need and either click the loaded or auto load check box to load the plug-in.
The Plug-in Manager uses the
MAYA_PLUG_IN_PATHenvironment variable to locate available plug-ins to load.The MAYA_PLUG_IN_PATH is scanned only once when you first open the window. This allows subsequent opens to be very fast. As a result, if you create a new plug-in on the MAYA_PLUG_IN_PATH while Maya is running, it will not show up in the Plug-in Manager. To access newly created plug-ins, do one of the following:
- Click the
Refreshbutton located in the Plug-in Manager window to update the list. This causes the directories to be scanned for changes to the window's contents.- Use the
loadPluginMEL command.- Restart Maya.
To load a plug-in from the command line:
Assuming that you have a plug-in named hello in the MAYA_PLUG_IN_PATH, you can use MEL’s
loadPlugincommand.This searches
MAYA_PLUG_IN_PATHlooking for a file namedhello.soon the Linux platform, a file namedhello.mllon the Windows platform, and a file namedhello.libon Mac OS X. Once found, it will be loaded into Maya as a plug-in.