Advertisement
nik684

Untitled

Sep 1st, 2020
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. -- Shutdown The Computer
  2. -- Description:
  3. -- Shutdown the computer after rendering
  4. -- Author : Atomic
  5. -- Version: 3D Studio Max 8
  6.  
  7. Utility shutdown_the_computer "Shutdown The Computer"
  8. (
  9. group "After Rendering"
  10. (
  11. checkbutton ckb1 "Shutdown" width:80 height:30 align:#center enabled:true
  12. )
  13. fn onShutdown =
  14. (
  15. txt = "checkForSave()"
  16. callbacks.addscript #preRender txt id:#shutdown
  17.  
  18. -- txt = "DOSCommand \"%systemroot%\system32\shutdown.exe -s -f\""
  19. txt = "DOSCommand \"shutdown.exe /s /t 60\""
  20.  
  21. callbacks.addscript #postRender txt id:#shutdown
  22. )
  23. fn offShutdown =
  24. (
  25. callbacks.removescripts id:#shutdown
  26. )
  27. on ckb1 changed state do
  28. if state == on
  29. then onShutdown()
  30. else offShutdown()
  31. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement