Courtesy of my Patreon supporters, I’ve uploaded the first tool of 2016, ml_toolbox!
ml_toolbox is a utility for organizing scripts in maya. It came about from having a very crowded scripts directory, with no good way to organize or group scripts on disk and also have them easily accessible in maya. I like shelves, but they take some setting up, and can get crowded. The idea with this is that you organize your scripts into folders, and then those folders are used to generate menus in maya.
To try it out, if you download ml_toolbox.zip, you’ll get the script and the required root folder (ml_toolbox_menu). It comes with a few example scripts which are organized in maya’s default folders already. Extract the script and folder to your scripts directory, and run import ml_toolbox;ml_toolbox.main(), and you’ll see the scripts in the folders show up in maya’s menus (File, Create, etc.). They’re prefixed with a * for quick identification.
From there, just create new folders and add your own scripts to them. If you want to get rid of a menu, just move it or delete it. If a folder matches an existing Maya menu name, the tools will be added to that menu, if it doesn’t, a new menu will be created. The only requirement for the scripts is for mel files the name of the procedure needs to be the same as the name of the file (which is generally the case), and for python scripts the primary function should be called main() or ui(). See the header of the script for more info on advanced use, or I can go into more detail if people would like. All the scripts on this site should work fine with it.
Create custom menus in Maya's main menu bar for organizing scripts, just by putting them into directories. Insert tools into the existing maya menus, or easily add entirely new menus.
|Date:||1 February, 2016|
And last, I have to mention that I’m writing this an hour before midnight on the last day of January, and so I know I definitely would have shirked this deadline without the Patreon supporters, so I can say that the experiment is working so far. Thank you guys! Time to start thinking about next months tool…