Welcome!

Welcome to our community forums, full of great people, ideas and excitement. Please register if you would like to take part.

This is extra text with a test link..

Register Now

Announcement

Collapse
No announcement yet.

Maya Batch Rendering

Collapse
This topic is closed.
X
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Maya Batch Rendering

    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
    Last edited by Professor Watkins; October 22, 2012, 20:06.

  • #2
    So, depending on how Maya installed, you may need to do the following steps (PC)
    1. Open the Control Panel and double-click the "System and Security"
    2. Click on System
    3. In the far left, click on "Advanced System Settings"
    4. In the System Properties window that appears, switch to the Advanced tab.
    5. Click Environment Variables.
    6. In the Environment Variables window, select the Path variable and click Edit.
    7. In the Edit System Variable window that appears, edit the Variable value by adding (first a ";") and then "C:\Program Files\Autodesk\Maya2013\bin\;".


    You can now run the Render command using the Windows command prompt without entering the path to the command.

    Comment

    Working...
    X