CC

CG study (After Effects, Nuke, Maya...), English study and more.

Monday, March 22, 2010

[Maya]-memo-command line render on Mac OSX

command line render on Mac OSX-quote from Autodesk website

----------------------------------------------

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/maya2009/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]

No comments:

Post a Comment