max 文件导入效果。

thePath = getSavePath() --get a path dialog to specify the path

if thePath != undefined do --if the user did not cancel

(

theFiles = getFiles (thePath+"\\*.max") --collect all max files in the dir.

for f in theFiles do --go through all of them

(

loadMaxFile f --load the next file

 

-----------------------------------------------------------

-- MAKE SOME SCRIPTED CHANGES TO THE SCENE HERE...

-----------------------------------------------------------

 

saveMaxFile f --save the file back to disk

)--end f loop

resetMaxFile #noPrompt --at the end, you can reset

)--end if

posted on 2011-06-12 13:08  盖天00  阅读(167)  评论(0编辑  收藏  举报

导航