Kill Max

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  02 February 2010
Kill Max

It's not what you think.

I've had problems for a while now with Max not completely shutting down when closed, but hanging around as a background task. I've finally found a way to make sure that it exits completely and cleanly when you want it to. Just create a startup script with the following post shutdown callback...

callbacks.addScript #postSystemShutdown "((dotNetObject \"System.Diagnostics.Process\").GetCurrentProcess()).Kill()" id:#killMax_CBK


It's been working great, and without any negative side effects as far as I can tell. The only thing you'd have to be careful of is making sure this doesn't stomp on any other post system shutdown callbacks you may have (there aren't any installed by default as far as I can see).

I would like to know, though, if anyone can think of any potential down sides to this.l
__________________
Website
Blog
 
  02 February 2010
Not that I'm aware of, I think that you just need to test it out. I haven't had the same problem so I can't really test it for you.
__________________
Paul Neale
http://paulneale.com
 
  02 February 2010
Yeah, I've been using it for a couple of weeks now without any problems.
__________________
Website
Blog
 
  02 February 2010
We were having a similar problem with max staying 'open' after close, but narrowed it down to a specific plugin, and no longer have the issue (after removing it from the ini).
__________________
http://www.fx-td.com
 
  02 February 2010
How's it going Ian?

Yeah, I've found there multiple things that can cause Max to hang around. In my case it's using 'DialogMonitorOPS', to auto-close certain windows on file open. And I don't want to stop using it, hence the workaround.
__________________
Website
Blog
 
  02 February 2010
Hey m8! Things are going... I'm up north again... In Vancouver now... will have to make a trip down and say hi some time!

Thx for the infos...good to know there are multiple reasons for max not to close.
__________________
http://www.fx-td.com
 
  02 February 2010
Working great here! Consider yourself one step closer to world domination

Thank you.
 
  02 February 2010
I've read the new beta color correct plugin for max 2010 will make this happen as well.

Just a little bit of info for future reference

-B
__________________
www.billa1.com










 
  02 February 2010
we've something similar... it's just a dos bat with this...


taskkill /F /IM 3dsmax.exe


Doesn't run everytime, but put a shortcut to it on your quickstart or start menu and you can get out of max lockups quickly too...
__________________
Keith R Morrison
www.focus360.com

XP Pro x64, Win 7 - Max 2009, Max 2013 - Vray 2.30.01 - Backburner (uhg)
 
  02 February 2010
Originally Posted by Kramsurfer: we've something similar... it's just a dos bat with this...


 taskkill /F /IM 3dsmax.exe
 


Doesn't run everytime, but put a shortcut to it on your quickstart or start menu and you can get out of max lockups quickly too...


... or it will kill another version of max that is currently opened to the purpose
Before killing any process it's better to ask this process for responding.

		fn getNotRespondingProcesses name:"3dsmax" = 
		(
			local processes = (dotnetclass "System.Diagnostics.Process").GetProcessesByName name
			for p in processes where not p.Responding collect p
		)


... after that it's safe to kill them
 
  02 February 2010
My first attempt at this was to use hiddenDosCommand to run killMax.exe. The problem there was that it killed every instance of Max, and some artists like to run multiple instances at once. So looking for ones that aren't responding is a good idea.
__________________
Website
Blog
 
  02 February 2010
Kill'em All...

I mean "There can be only one."....That's my motto.. running multi instances of max can confuse the autobak.. which isn't an issue for big shops I guess, but can be a half day loser for me...

Yeah, my technique is definitely brute, but I like it that way.. Some people think running anti virus is a good use of clock cycles too... ;-)
__________________
Keith R Morrison
www.focus360.com

XP Pro x64, Win 7 - Max 2009, Max 2013 - Vray 2.30.01 - Backburner (uhg)
 
  02 February 2010
If that works for you, go for it. But since I'm maintaining tools for a whole group of artists, I'd be lynched if every time one of them close one copy of Max, all of them got closed.
__________________
Website
Blog
 
  02 February 2010
Hummm.. never thought of shutting down ALL of them... I just thought of pairing this with pstools. One could REALLY.... kill ALL max ! ! ! ;-)


I'm down to supporting only 5 artists and having to do more production work...



__________________
Keith R Morrison
www.focus360.com

XP Pro x64, Win 7 - Max 2009, Max 2013 - Vray 2.30.01 - Backburner (uhg)
 
  02 February 2010
I'm a maxscript newbie. can inform me how compile the script? Do I simply copy that code above into a text document and rename the file extension into .ms?

Thanks
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 09:09 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.