Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Maxunderground news unavailable

[HLP] Need some help running maxscript via command line
show user profile  jpedleham

3dsmax.exe -silent -mxs loadMaxFile "[MAX FILE NAME]" for i = 1 to theMixer.numMaxMixers() do theMixer.removeMaxMixer 1 false 1 maxfilesave

Ive tried running the above (after navigating to the max directory) and it opens max but it doesnt seem to actually carry out the maxscript.

Im trying to make it so that the huge bloated files my team have to work with dont have to be opened to remove the motion tracks as this sometimes takes over an hour simply to open the file for larger models. Id like to run this script without having to wait all that time if possible eventually creating a small frontend to handle the file path browsing making it much easier for the less tech savvy ones to sort out their work.
Can anyone help?
read 363 times
2/5/2015 4:24:01 PM (last edit: 2/5/2015 4:24:01 PM)
show user profile  Garp
I believe the entire script part - from after -mxs to the end - should be within double quotes. Something like:
3dsmax -silent -mxs "some maxscript here" file_to_load.max

read 357 times
2/5/2015 5:10:51 PM (last edit: 2/5/2015 5:25:10 PM)
show user profile  jpedleham
Ok cool ill give that a go cheers. is there a way to run max simply through command, without having to load the max interface etc? Kind of in the same way backburner does.

read 337 times
2/6/2015 9:38:38 AM (last edit: 2/6/2015 9:38:38 AM)
show user profile  Garp
Did you search the doc? There's a page describing the various switches.

read 327 times
2/6/2015 4:43:39 PM (last edit: 2/6/2015 4:43:39 PM)
show user profile  br0t
There is a flag that will keep Max minimized, but there is no real "headless" mode for Max, that would reduce loading time considerably

never get low & slow & out of ideas

read 314 times
2/6/2015 10:18:50 PM (last edit: 2/6/2015 10:18:50 PM)
show user profile  jpedleham
br0t was describing pretty much what i want but unfortunately if thwats the case it looks like a case of grit your teeth and wait for the files. Motion tracks are the plague of our model library at the moment. thousands in each file!
Cheers for the help guys.
read 295 times
2/8/2015 6:37:21 PM (last edit: 2/8/2015 6:37:21 PM)
#Maxforums IRC
Open chat window