lged

前天看到一位大神写用MaxScript实现重启3dsMax的方法,用的是.net临时编译一个exe出来,然后用这个新的进程来关闭并开启新的max。感觉这种思路不错,或许可以用在别的地方。不过谈及max的重启,用那办法写几十行的代码显得繁琐了。

我想了一下,其实有个相当简单的办法,两行脚本搞定:

callbacks.addscript #postSystemShutdown "shellLaunch (getDir #maxroot + \"3dsmax.exe\") \"\""
quitMax #noPrompt

 

分类:

技术点:

相关文章:

  • 2021-10-19
  • 2021-09-27
  • 2022-02-09
  • 2021-04-25
  • 2021-10-17
  • 2021-10-19
  • 2019-01-01
  • 2021-05-13
猜你喜欢
  • 2021-07-23
  • 2021-11-17
  • 2021-07-06
  • 2021-12-03
  • 2021-08-21
  • 2021-11-10
相关资源
相似解决方案