Is there a script that executes at maya shutdown (before it's windows begin closing). Some sort of complement to the userSetup.mel script that executes at startup?
I'm not sure of a shut down script, but you can set up a script job when Maya closes
From the help:
-le/listEvents
quitApplication: when the user has chosen to quit, either through the quit MEL command, or through the Exit menu item.
Richard
Yes theres only one annoying problem with scriptjobs at close they work fine but not if you close maya by ticking the x of maya ui window... Wich is annoying!
That's a really usfull feature then!But then I've had other problems with script jobs, so it dosen't surprise me.
Yes i suppose it has something to do how windos does it... but if you allawys exit using file menu then its fine...
Yes ive been thinking to hack a way to disable the x ses its just too damn easy to kill windows by accident not only maya windows i say!
Interesting....I tried using a script job to detect the quitApplication event, and it works fine when the user clicks the close "x". Running windows XP pro, Maya 4.5.
Perhaps what you're seeing is something else?
Maybe it bacuse i use win2k ill relook into it maybe im using wrong event or soemthing!