hah, two years later!
that's a good idea, TM
but poor people in this poor forum (me included) aren't smart enough to support such good ideas...
I'd like to show how to process multiple files with a maxscript (I'm not too familiar with ms so don't blame me).
Dunno if I ever will code the 2nd part but here's the first (modified from http://www.rsart.co.uk/2011/07/07/maxsc ... -handling/
after some beautifying you get a function which gets you the names of the model files:
fn process_models modelfolder= (
model_files = #()
model_type = ".m3g"
-- Get all the m3g files
diff_files = modelFolder + model_type
thefiles = getfiles diff_files
for f in thefiles do
append model_files ((getfilenamefile f) + model_type)
model_files -- return this
process_models "K:\\Programme\\Autodesk\\3ds Max 2013\\scripts\\RR3\\*"
resulting listener output:
#("2013_hyundai_wrc_a.m3g", "2013_hyundai_wrc_b.m3g", "2013_hyundai_wrc_c.m3g", "2013_hyundai_wrc_d.m3g", "2013_mclaren_mp412c_e.m3g", "2013_mclaren_mp412c_g.m3g", "2013_mclaren_mp412c_h.m3g", "tyre_standard1_tyres.m3g")
Now you've to erase the getOpenFileName
dialogue line from your maxscript,
make a function of the whole script and process all files in the model_files list
in a for loop
that calls that function.
That's how I would do it. (Didn't check it but should work.)
btw. "diff" in the original code was meant for "diffuse" now it's just "different"...
Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894Make_H2O-ForzaHor3-jm8.zip
"We are Microsoft. You will be assimilated. Resistance is Futile."