Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Shutdown The Computer
- -- Description:
- -- Shutdown the computer after rendering
- -- Author : Atomic
- -- Version: 3D Studio Max 8
- Utility shutdown_the_computer "Shutdown The Computer"
- (
- group "After Rendering"
- (
- checkbutton ckb1 "Shutdown" width:80 height:30 align:#center enabled:true
- )
- fn onShutdown =
- (
- txt = "checkForSave()"
- callbacks.addscript #preRender txt id:#shutdown
- -- txt = "DOSCommand \"%systemroot%\system32\shutdown.exe -s -f\""
- txt = "DOSCommand \"shutdown.exe /s /t 60\""
- callbacks.addscript #postRender txt id:#shutdown
- )
- fn offShutdown =
- (
- callbacks.removescripts id:#shutdown
- )
- on ckb1 changed state do
- if state == on
- then onShutdown()
- else offShutdown()
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement