bentllama
10-18-2002, 07:58 PM
Below you will find a MAX script I am working on…
Seeing as you all have helped me greatly in the past, I have another MAXscript question for you.
Can I tokenize a list of directories so the script processes the entire list? I want to list directories that contain specific file...and export those files with the source file name into that same directory. How can i batch it to do this?
Thanks in advance for your help.
-- MAX2FBX-test.ms
-- Exports MAX files in a source directory to FBX files in a destination directory
-- with the same filename as the source MAX files.
Dir = #("C:\\temp\\max2fbxSource\\")
MaxFiles = #()
For d in Dir do Join MaxFiles (getFiles (d + "*.max"))
for f in MaxFiles do
(
LoadMAXFile f ;
ExportFile ("C:\\temp\\max2fbxExported\\" + getFilenameFile (MaxFileName) + ".fbx") ;
)
Seeing as you all have helped me greatly in the past, I have another MAXscript question for you.
Can I tokenize a list of directories so the script processes the entire list? I want to list directories that contain specific file...and export those files with the source file name into that same directory. How can i batch it to do this?
Thanks in advance for your help.
-- MAX2FBX-test.ms
-- Exports MAX files in a source directory to FBX files in a destination directory
-- with the same filename as the source MAX files.
Dir = #("C:\\temp\\max2fbxSource\\")
MaxFiles = #()
For d in Dir do Join MaxFiles (getFiles (d + "*.max"))
for f in MaxFiles do
(
LoadMAXFile f ;
ExportFile ("C:\\temp\\max2fbxExported\\" + getFilenameFile (MaxFileName) + ".fbx") ;
)
