Notifications
Clear all

[Closed] Need help with batch script

I got from the autodesk site
but it is not working

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 intheFiles do– go through all of them
(
loadMaxFile f

———————————————————– – 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

but i get this error

– Syntax error: at name, expected “in” or “:=”
– In line: for f theFiles d

2 Replies
for f in theFiles do

that did it thanks a mill