Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Speed up Maya Shutdown

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
DEVR2702
1032 Views, 4 Replies

Speed up Maya Shutdown

Hi, was wondering if there is a way to speed up maya shutdown. Maya 2016 takes forever.

 

Thanks.

H

 

4 REPLIES 4
Message 2 of 5
sven_j
in reply to: DEVR2702

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.

Message 3 of 5
DEVR2702
in reply to: sven_j

That's perfect!

 

Ive been using the task manager, and this is much better.

 

Thanks.

 

Message 4 of 5
rkovach
in reply to: DEVR2702

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");

Source: http://tech-artists.org/forum/showthread.php?5231-Maya-Reducing-Maya-shutdown-time-by-disabling-Auto...

 

One caveat, if you use this in Maya 2017, your current workspace doesn't get saved.

Message 5 of 5
sven_j
in reply to: rkovach

Actually I like it without saving, but nice script. For some of the artists I know it could be useful. Thanks! 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report