Okay, say I want to render something that takes a very long time and I know it will; so I turn on the renderer before I sleep for the night; How do I get the computer to automatically shut off after the render is finished? (Or go into stand-by or hibernation) I’m running Windows XP Home in case it helps.
wrong forum, should be in Blender General.
I think you would need a python script to do this
make a batch file, and put in it
blender -b file.blend -f 1
shutdown -s
and run that.
Maybe posted in the wrong place but I really like the idea, and would like it myself so I wrote this:
Well wouldn’t it eliminate my render once it shuts down?
no, it will save it
“blender -b” doesn’t even open the blender window, it renders and saves a file
dunno whether you were responding to z3r0 d or me… in case of my script… no it won’t since it uses the anim function and not the render function.
macouno: It shuts down just as it normally would then stops and says “Windows is now safe to shut down” which this computer has never done and the fan is still on until I press the power button. So it doesn’t truly shut-down so does it do any good?
I’m not in windows at the moment so I can’t answer that directly…
Just bring up a command prompt and run “shutdown /?” or something like that, you should get a list of command-line parameters to feed into it, either for my batch file or macuono’s script.
Just experiment till you find a setting that works.
Dude, in case you hadn’t noticed my other posts as to coding; I am completley unable. I am using macouno’s script.
Dude, in case you hadn’t noticed I didn’t say you had to code anything. Just open up a command prompt (Start->Run… and type “cmd”) and run “shutdown /?” to get a list of its parameters.
Experiment with them to try and find one that will shut down your computer completely.
When you find one, edit the script to use it - it’s fairly obvious where, its the only line that has “shutdown.exe” in it.
<So, So very confused> I can shut down my computer normally, It doesn’t shut down after I hit “Animate and Shutdown” it goes to what I mentioned earlier though.
well, never mind, I rebooted into windows to test it for you, and the shutdown thing in the script should work, it works for me.
One test:
Start->Run, and type in “shutdown -s” and click OK, see what happens.
I did that and it ended the same way as the python, ehm… what was the point of that?
It tells me whether the problem is with the shutdown program, or the way the python script is using it.
It seems it’s with the shutdown program itself, therefore I’m not sure if there’s anything that can be done.
[edit]
OK, try this instead… Start->Run and run “rundll32 user.exe,exitwindows”
yeah strange… it works perfect for me (I am on winxp pro btw)… no messages no nothing… the puter just shuts down.
jackj: I’m thinking there’s something odd on your computer… what software do you have runnin in the background?
I have to agree with phlip that if shutdown -s gave you the same result as the script then it’s not the script. There’s a setting or program on your computer that stops it functioning correctly.
The use of rundll will always work to completely shut down windows, but you must be careful when using it to pay attention to where you don’t put spaces. Make sure you have only one space in there, between “rundll32” and “user.exe,exitwindows”:
rundll32.exe user.exe,exitwindows
Hope this helps.
Your telling me even a slight mistake in text could really screw me? <Shudders>
Oh! No. It just won’t work and you’d wonder why not. Sorry to scare you. <phew>
Okay, so I ran that and all that happend was an error telling me it was not a valid windows image? And to check it against a diskette?