Hi, was wondering if there is a way to speed up maya shutdown. Maya 2016 takes forever.
Thanks.
H
Solved! Go to Solution.
Solved by sven_j. Go to Solution.
Hi,
because I program often for Maya I simply created a .bat file including the following command:
taskkill /f /im "Maya.exe"
But take care, this is like a process kill from the task manager!
1. It will kill ALL Maya applications!
2. When you changed some settings in Maya (e.g. code in the script editor, shelf tabs changed, recently used file list, project directory change....) this will NOT be saved!
3. Maya will not ask if you want to save maya scene!
So use it carefully.
if you want to preserve your preferences, ask the user to Save before Quit, etc, this combines the best of both worlds:
global proc quit() { warning("Initiating Maya Force Quit."); //Query scene changes, return without quitting when canceled. if(!saveChanges("")) return; //Save prefs savePrefs; saveToolSettings; saveViewportSettings; pluginInfo -savePluginPrefs; //Kill maya $i = `getpid`; //application ID system("taskkill /PID " + $i +" /f"); }
Save this as "maya_force_quit.mel" and put it somewhere on your MEL Script path. I put this in "My Documents/Maya/scripts".
Then add this line to your "usersetup.mel"
eval("source maya_force_quit.mel");
One caveat, if you use this in Maya 2017, your current workspace doesn't get saved.