| Creating a batch script for rendering on Mac OS XIssueYou are on Mac OS X and you want to render several files one after another using a batch script. SolutionTo batch render multiple scene files, you need to create a shell script, for example: myRender.sh. 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 Save the file on your desktop as: myRender.sh. 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] Now run the script from the Maya terminal by typing:
/Users/YOUR-USERNAME/Desktop/myRender.sh [Return/Enter]
Support – Terms of UseAUTODESK DOES NOT GUARANTEE THAT YOU WILL BE ABLE TO SUCCESSFULLY DOWNLOAD OR IMPLEMENT ANY SERVICE PACK OR WORKAROUND, OR ANY OF THE TIPS, TRICKS, EXAMPLES OR SUGGESTIONS OUTLINED IN ANY AUTODESK PRODUCT SUPPORT TECHNICAL DOCUMENTS. TECHNICAL DOCUMENTS, SERVICE PACKS AND WORKAROUNDS ARE SUBJECT TO CHANGE WITHOUT NOTICE TO YOU. AUTODESK PROVIDES TECHNICAL DOCUMENTS, SERVICE PACKS AND WORKAROUNDS "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL AUTODESK OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF DATA, OR LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, THAT MAY OCCUR AS A RESULT OF IMPLEMENTING ANY SERVICE PACK OR WORKAROUND, OR ANY SUGGESTION OUTLINED IN ANY AUTODESK PRODUCT SUPPORT TECHNICAL DOCUMENT, EVEN IF AUTODESK OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. | |
|