MaxScript重启3dsMax的重新思考

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

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

callbacks.addscript #postSystemShutdown "shellLaunch (getDir #maxroot + "3dsmax.exe") """
quitMax #noPrompt
原文地址:https://www.cnblogs.com/lged/p/5507274.html