executing script

Hello!

I would like to know if is possible to execute a script as an argument of command line or something similar.

I have to execute a script over several scenes and it would be very useful for me if I could do that without copying the script in startup or stdscripts folder because I will need do that many times and many others I will need the default behaviour when I start MAX

Thanks!

Comments

Comment viewing options

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

Hi - this is the commandline

Hi - this is the commandline I use:

3dsmax -U MAXScript yourscripthere.ms -mip -slient

Which is supposed to launch Max in a UI-minimized mode, and run "yourscripthere.ms" as soon as it launches.

In the maxscript itself, I then get a directory listing of the max files that I want to process, and iterate through them, opening each max file and processing it as needed.

hope this helps.
-Glen.

Aquiles's picture

Thank you very much, that

Thank you very much, that works

Comment viewing options

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