ScriptSpot

Script

Shutdown Computer after render with automatic phone call

By popa_3d · Credited author: POPA_3D · 2012-09-10

Version
1.02
Version requirement
3ds max 7 and up
Date updated
2012-09-10
Votes
4
Download
Download
Description

If you have a render that take a long time and you want to go to sleep or to go out your office this script will shutdown your PC after the render is completed.

- Shutdown will shutdown the computer

- Logout will Log off the user

- Quit 3ds Max will exit 3ds Max

- Force Close All Applications will forces running applications to close without warning

- Wait Before Shutdown will let you Set a given time for shutdown, in seconds

 

Addtional Notes:

 

Let’s say that you need to cancel a shutdown in progress. hit Windows Key + R then type  shutdown -a

 

Before any action the script will save your scene in the folder of your choice under the name SavedBeforeShutdown.max

 

For Security the script will check if there is a specified output path before render

Please be carfull using this script and test it to know how it work before using it on an important job 

the script is tested on windows XP but should work on win 7 or vista

###Installation:

1-Run  Shoutdown My Computer.mzp from maxscript menu (maybe restart 3ds max is needed) 

2-customize>customize user interface> toolbars category popa_3d scripts then drag it to your desired toolbar.

for phone call detailled informations can be found on the attached pdf file on how to configure your pc (windows xp) 

hope you like it and find it usefull !  if so please vote up :)

Attachments

Tags: render, max, 3ds, after, automatic, Post, shutdown, computer, logout, quit, shut, exit, phone, call

Comments (14)

Had to remove it from my computer.

3dwannab · 2014-03-10

After pressing render even without running script it caused max not to crash but seize to do anything. Once I remove the script from max directories everything was fine. Just making you aware of the problem. Max 2014 x64. VRay 2.4.

Also when using the script, cancelling the render does the same thing.

MB3D

mb3d · 2012-11-07

Hi Popa, sorry for the delay in responding, I answer your question:

When I render I I have two situations:

1) several cameras in the scene, thus using Batch render (the problem here is that it has its own render Batch rendering window), it would be great if your script could turn off the computer at the end of the last chamber.

2) That you have an animated camera that is located in different positions (1 frame of animation for each new camera position, when rendering is the same as an animation).

If something is not understood, please show me that, and I try again.

Thanks for answering and for your time, when you update the script, I try and tell you.

Excellente Script!

Regards

about closing Max after render...

Anubis · 2012-09-18

callbacks.removeScripts id:#quitMax
callbacks.addScript #postRender \
"quitMAX #noPrompt" id:#quitMax

...or I miss something?

HI anubis!

popa_3d · 2012-09-18

Can you explain what are you trying to do? I didn't use any callbacks in this script just do max quick render... then shutdown log off or quit max have you find any error?


max quick render
quitMAX #noPrompt

Hi Popa_3d

Anubis · 2012-09-18

I not tested your script as I never shutdown my computer as the OS need the idle time for it work. As for quit the Max is easy, so I just wonder why the script is encripted, that's all ;)

And shutdown is easy as well:

C:\WINDOWS\system32\shutdown.exe -r -t 0

(edit) woops, "-r" switch was for reboot, "-s" is for shutdown

ok...

popa_3d · 2012-09-18

it is just that I don't want that other one modify it and put it under his name I think I have right to do this.
I didn' encrypt the script because the complexity of the code I made this script for my personal use and wanted to share it...maybe you know max script but there are people who don't and even they wanted such a thing they can't do it.

sorry if you don't like it and don't find it usefull...

:)

Anubis · 2012-09-18

Do not get my words so hard ;) from my point of view, this is a common knowledge (i.e. already available everywhere for free). It's good to hide treasure code, but of'cuz everybody decide itself what is valuable for him.

I will do this when I find some time...

popa_3d · 2012-09-15

Hi!
I will do this when I find some free time as alternative you can call your mobile this way it will ring and wake you up (tested on xp)

kevinshane · 2012-09-15

Hi~plz do music call when render finished!!
That's mean when the rendering is finished,the script will automatically play the music so that it can wake me up!!!please !!!it's really important for me

Now with automatic phone call :)

popa_3d · 2012-09-14

thank you ! a good news now the script can call you when the render is finished.(tested on windows xp) configuration help can be found on the attached pdf

AWESOME!

pokeka · 2012-09-13

Man i loved this script. I really wanna say THANKS!!

Amazing!

mb3d · 2012-09-12

Hi popa, Thanks for your effort, i really need something like this, maybe you can include on an update, my comments below:

1) Can you make a button to select where save the backup file? give an error, because win7 dont give the chance to write on "C" Disk (I think ....)
2) Can you make a connection between Batch Render and the "Shutdown Button"?
This would be great, if not, you must wait, jejeje .....

Aniway, Thanks for your WORK!

Greetings!.

http://martinbernay3d.wix.com/martinbernay

popa_3d · 2012-09-12

Hi MB3D I have done an update for you now you can choose the folder of your choice to save the scene...

I don't understand your 2nd comment what do you mean by batch render?

animation render? render multiple 3ds max scene? render multiples cameras view?...please explain and please redid the test under windows 7...

happy that you like it.

moure · 2012-09-11

thanks for this ill give it a test ;)