Page 1 of 1

Please help with mxcl

Posted: Thu Jul 28, 2005 1:19 am
by philipbruton
I have written the following text into a .bat file

C:\windows\cmd.exe
cd c:\Program_files\Next_Limit\Maxwell\
mxcl -mxs:C:\Program_Files\Next_Limit\Maxwell\output\default.mxs -d -mxi:w,-C:\Program_Files\Next_Limit\Maxwell\output\default.mxi -mxi:c,C:\Program_Files\Next_Limit\Maxwell\output\default.mxi -th:1

when i run this i get an error which read

Reading MXS File:
C:\Program_Files\Next_Limit\Maxwell\output\default.mxs

Error: Mxs file can't be opened


when i copy the default.mxs to C:\ROOT and run this .bat

cd c:\Program_files\Next_Limit\Maxwell\
mxcl -mxs:C:\default.mxs -d -mxi:w -mxi:c -th:1

everything is glorious and it renders out fine

can someone please tell me what i'm doing wrong ?

This should work but it isn't , tyia for any thought on this

phil b

Posted: Thu Jul 28, 2005 2:15 am
by philipbruton
thanks 4 spotting my stupid error, but never the less it still doesn't work

Posted: Thu Jul 28, 2005 8:29 am
by spekoun

Posted: Thu Jul 28, 2005 11:01 am
by stonelli
I think that in DOS your
C:\Program_Files\Next_Limit\Maxwell\output\default.mxi
should actually read
"C:\Program Files\Next Limit\Maxwell\output\default.mxi" so it would seem that the message spekoun mentions should be pointing you in the right direction

Posted: Thu Jul 28, 2005 12:58 pm
by philipbruton
actually i use "_" in the lines to call the mxcl.exe which works thereofre this should work. The code spekoun has is for batch rendring which i dont want.

Posted: Thu Jul 28, 2005 1:12 pm
by stonelli
philipbruton wrote:actually i use "_" in the lines to call the mxcl.exe which works thereofre this should work. The code spekoun has is for batch rendring which i dont want.
The point is that I don't think DOS, which is what you are using the BAT file allows you to replace a space with a _
Traditionally paths with a space in them have had to be put in " in order to be read...

Posted: Thu Jul 28, 2005 1:30 pm
by philipbruton
ok i'll try that, cheers

Posted: Thu Jul 28, 2005 1:36 pm
by Mihai
You don't need to specify the full path to the mxcl in the bat because that path is already specified in the Windows system settings when Maxwell installs.

That's why I think this bat is ignoring that cd...part you wrote for the mxcl and gives you no errors there, but it does give you errors when you write Program_Files etc......Program_Files is not the same as Program Files.

The way I set it up is from a tip I got some time ago, forgot by who:

Write this bat and name it for example 'go' and put it in your Maxwell install folder
Code: Select all
mxcl.exe -mxs:k:\Outputfolder\%1.mxs -d -mxi:w,k:\Outputfolder\%1.mxi -mxi:c,k:\Outputfolder\%1.mxi -o:k:\Outputfolder\%1.tga -r:%2 -t:%3

In my case I have a folder on my K drive named Outputfolder, so change that to whatever drive you want to save the files to.

Now all you have to do for every scene you make is first export the scene from your app, put it in the outputfolder then open a command prompt (start>run>cmd) and type:

go myscene 800x600 90

The %1, %2, %3 in the bat are variables which are taken in order, so myscene becomes %1 and so on...

It's very convenient this way because you can just use this same file for all your scenes and also for quick rerenderings, just keep the cmd open, press up arrow to bring up the go command again, and press enter.

Posted: Thu Jul 28, 2005 1:39 pm
by philipbruton
ok well i corrected that code to this


c:\Program Files\Next Limit\Maxwell\mxcl.exe
mxcl -mxs:"c:\Program Files\Next Limit\Maxwell\output\default.mxs" -mxi:w -mxi:c -nowait -o:"c:\Program Files\Next Limit\Maxwell\output\default.tga" -d -th:1

and everything worlks well for an mxi re-rendering, many thanks spekoun !