ScriptSpot

Forum topic · General Scripting

executing script

By Aquiles · 2008-01-09

Description

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 (2)

Glen Schulz · 2008-01-22

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 · 2008-01-23

Thank you very much, that works