解决Max 2015安装sp3补丁之后的保存打开文件路径问题
# 解决Max 2015 安装sp3补丁之后的保存打开文件路径问题
如上图,将以下代码复制创建 保存为 【Max2015sp3_open_save.ms】放到 MAX 脚本启动目录 Startup 文件下 即可。第一次使用可以拖拽进MAX运行该脚本生效
Global GMOrigScnPth = Getdir #scene
Global GMStringTest = ""
callbacks.addScript #filePostOpenProcess "if (GMStringTest != undefined) and (GMStringTest.count == 0) do(if maxFilePath != GMStringTest do(SetDir #scene maxFilePath))" id:#filePostOpen_callback
callbacks.addScript #filePostSave "SetDir #scene maxFilePath" id:#filePostSave_callback
callbacks.addScript #preSystemShutdown "if (GMOrigScnPth != undefined) do(if (doesFileExist GMOrigScnPth) do(SetDir #scene GMOrigScnPth))" id:#preSystemShutdown_callback
--https://forums.autodesk.com/t5/3ds-max-forum/2015-sp3-bug-quot-file-save-as-quot-directory/td-p/5451395/page/2
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10