Autodesk Maya Services & Support

Creating a batch script for rendering on Mac OS X

Issue

You are on Mac OS X and you want to render several files one after another using a batch script.

Solution

To batch render multiple scene files, you need to create a shell script, for example: myRender.sh.

  1. Using a text editor (Applications > Textedit), enter the render command for each individual scene on a separate line.

    #!/bin/bash
    Render –r sw scene1.mb
    Render –r sw scene2.mb
    Render –r sw scene3.mb

    In some cases, you may need to enter the complete path of the Render command.  It is located here:

    /Applications/Autodesk/maya2012/Maya.app/Contents/bin/Render

  2. Save the file on your desktop as: myRender.sh.
  3. You will need to change the file permissions of myRender.sh  to 755.

    Open the Maya Terminal (Applications > Autodesk > Maya2009 > Maya Terminal) and type:

    chmod 755 /Users/YOUR-USERNAME/Desktop/myRender.sh

    [Return/Enter]

  4. Now run the script from the Maya terminal by typing:

    /Users/YOUR-USERNAME/Desktop/myRender.sh

    [Return/Enter]


Support – Terms of Use
  • Did this page resolve your issue?
  • Translate This Page (Beta)

    Learn More about this translation beta.Page is machine translated. Learn More.

    Was this translation useful?

  • Document Information

    Published date: 2011-Nov-18
    ID: TS13557961

     

    Applies to:
    Autodesk® Maya® 2014
    Autodesk® Maya® 2013
    Autodesk® Maya® 2012
    Autodesk® Maya® 2011
    Autodesk® Maya® 2010
    Autodesk® Maya® 2009
    Autodesk® Maya® 2008
    Autodesk® Maya® 8.5
    Autodesk® Maya® 7