The easiest solution I've found is to make your render.bat file in Notepad. Just open Notepad and enter something like below. An example is here:
// start of file
--------------------------------------------------------------------------------
REM // This is a render.bat file that renders two files
REM // notice that you have to show where the .mb file is
REM // Also notice that this render.bat file must be saved
REM // in the Autodesk\Maya2013\bin folder.
render C:\MyProject\scenes\shot10.mb
render C:\MyProject\scenes\shot11.mb
--------------------------------------------------------------------------------
// end of file
Some things to note:
* Notice that anything with // is just a comment and won't affect the rendering
* Notice that its not just the "shot10.mb" file that's called for. The entire location of that file, "C:\TheTriune\scenes\shot10.mb" is called out.
* Make sure to save this file as WHATEVER.bat (I saved it as render.bat).
* Note that it is just calling for the application render. To make things easier (so you don't have to work with converting path names to DOS 8.3 format), if you make sure and save your render.bat file in C:\Program Files\Alias\Maya2013\bin (where your Render.exe application is), then the .bat knows right where to go.
It might work differently on your machine; but on the WindowsXP machines at the school it had to be set up that way.
So to cap things off:
1. Make sure to open all of your Maya files that you plan to sequentially batch render in this way and confirm that the Render Globals are all correct (size, number of frames, quality, etc...)
2. Close Maya
3. Open Notepad
4. Copy/Paste the text above in the sample .bat file
5. Make changes to the path to indicate where your files are
6. Save this Notepad document as WHATEVERYOUWANT.bat (I used render.bat) - but make sure to save it where your Render application resides (probably C:\Program Files\Alias\Maya2013\bin)
7. Last, just double click the WHATEVERYOUWANT.bat file (in the bin folder) and each file will be rendered in turn
// start of file
--------------------------------------------------------------------------------
REM // This is a render.bat file that renders two files
REM // notice that you have to show where the .mb file is
REM // Also notice that this render.bat file must be saved
REM // in the Autodesk\Maya2013\bin folder.
render C:\MyProject\scenes\shot10.mb
render C:\MyProject\scenes\shot11.mb
--------------------------------------------------------------------------------
// end of file
Some things to note:
* Notice that anything with // is just a comment and won't affect the rendering
* Notice that its not just the "shot10.mb" file that's called for. The entire location of that file, "C:\TheTriune\scenes\shot10.mb" is called out.
* Make sure to save this file as WHATEVER.bat (I saved it as render.bat).
* Note that it is just calling for the application render. To make things easier (so you don't have to work with converting path names to DOS 8.3 format), if you make sure and save your render.bat file in C:\Program Files\Alias\Maya2013\bin (where your Render.exe application is), then the .bat knows right where to go.
It might work differently on your machine; but on the WindowsXP machines at the school it had to be set up that way.
So to cap things off:
1. Make sure to open all of your Maya files that you plan to sequentially batch render in this way and confirm that the Render Globals are all correct (size, number of frames, quality, etc...)
2. Close Maya
3. Open Notepad
4. Copy/Paste the text above in the sample .bat file
5. Make changes to the path to indicate where your files are
6. Save this Notepad document as WHATEVERYOUWANT.bat (I used render.bat) - but make sure to save it where your Render application resides (probably C:\Program Files\Alias\Maya2013\bin)
7. Last, just double click the WHATEVERYOUWANT.bat file (in the bin folder) and each file will be rendered in turn
Comment