<DESCRIPTION>
Creates a custom MEL menu that you could use to organize the MEL scripts
in your scripts folder (or anywhere, with slight modification). Creates a
menu item for each mel script.
Clicking on a menu item will execute the procedure of the same name. For
example, if the mel script is called myScript.mel, then the menu will try to
execute 'myScript;'.
Now works with Python scripts, too. Clicking on the menu item will execute the function of the same name. For example, if the python script is called myScript.py, the the menu will try to execute:
python "import myScript; reload(myScript); myScript.myScript()".
Also creates an option box for each mel/python script that you could use to open the script externally.
The menu creates a submenu for every subdirectory in your script path
and appends all the directories to the MAYA_SCRIPT_PATH and to Python's sys.path!
Inspired by Advanced Character Pipeline and Tools,
AWGUA Siggraph 2003 - Maya Master Class Seminar,
Instructors: Erick Miller, Paul Thuriot. </DESCRIPTION>
<TO_USE>
Copy oaMelMenu.mel to your scripts folder.
Append 'oaMelMenu;' to your userSetup.mel file.
Start Maya. You should see a new menu called 'MEL'.
o To execute a mel script, just click on a menu item.
o Clicking on the option box will open the mel script externally
with the default application associated with .mel/.py files.
(Tested on Windows XP.)
o To change the root directory of the mel menu, change the
$MEL_MENU_ROOT_DIR variable below (around line 87).
o Click the 'Rebuild This Menu' menu item to refresh the 'MEL' menu.
NOTE: This does not source all the mel scripts. If you are working
on a mel script, you still have to source it yourself. </TO_USE>
<HISTORY>
v1.1 (Monday, November 19, 2007)
o Now works with Python scripts!
v1.0 (September 29, 2005)
o Original Release </HISTORY>
IF YOU ENJOY THIS MEL SCRIPT, PLEASE RATE IT. I WOULD APPRECIATE IT. THANK YOU!
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.