ScriptSpot

Forum topic · General Scripting

How to call MaxScript in windows command line or program languages like Java?

By gloomy · 2008-07-22

Description

As subject, I want to integrate maxscript files to an automatical pipeline so that I don't need to open it one by one and run. Any ideas? Thanks in advance.

Comments (2)

gloomy · 2008-07-28

Thank you very much for your answer.

decapitator · 2008-07-22

Just a mxs suggestion:

getFiles <wild_card_filename_string>

files = getFiles @"c:\foo\*.ms"
for file in files do fileIn file

or include.
For more details see "External File Methods" in the mxs help file. And if that is to limited id check dotNet which can just be coded in max.

Calling maxscripts from commandline seems a bit odd since it requires 3dmax its not a standalone program, but a script..