All posts relating to Maxwell Render 1.x
User avatar
By philipbruton
#50109
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
User avatar
By philipbruton
#50118
thanks 4 spotting my stupid error, but never the less it still doesn't work
User avatar
By stonelli
#50172
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
User avatar
By philipbruton
#50201
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.
User avatar
By stonelli
#50205
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...
User avatar
By philipbruton
#50219
ok i'll try that, cheers
User avatar
By Mihai
#50223
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.
User avatar
By philipbruton
#50224
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 !
Sketchup 2025 Released

Thank you Fernando!!!!!!!!!!!!!!!!!!!!!!!!!!! hwol[…]

I've noticed that "export all" creates l[…]

hmmm can you elaborate a bit about the the use of […]

render engines and Maxwell

Funny, I think, that when I check CG sites they ar[…]