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

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gloomy's picture

Thank you very much for your

Thank you very much for your answer.

decapitator's picture

Just a mxs

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..

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.