sihina_lahiru
05-08-2010, 02:43 PM
Quick Tip – Render Faster using the Windows Command Line with Maya
In this Quick Tip tutorial, you will learn how to batch render Maya scenes faster using the Windows command line, and in this way, maximize the amount of processing power you can get from your computer.
Step 1
First if you’re using Windows 7, and the latest version of Maya 2010, you need to set the path of the mayabatch to the systems’ Environment Variables. Right click on ‘Computer’ and select ‘Properties’. In the window that opens, click on ‘Advanced System Settings’.
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/1.jpg
Step 2
In the window that pops up, select the ‘Advanced’ tab on top, and then click on ‘Environment Variables’.
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/2.jpg
Step 3
Under ‘System Variables’, scroll and find the one with the name ‘Path’, select it, and click the ‘Edit’ button.
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/3.jpg
Step 4
In the window that comes up next to ‘Variable value:’, scroll to the end of the field, and add ‘;’ plus the path to your Maya directory (and its ‘bin’ folder). By default the directory is ‘C:\Program Files\Autodesk\Maya2010\bin’ Then click ok on all of the windows to close them.
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/4.jpg
Step 5
When rendering your file through the command line, the batch renderer will take all of the settings from the Maya file. These include settings in the render options, such as: the file name of the output files, image format, frame padding, start and end frames, renderable cameras, image size, and all of the other quality and render settings in the render set up. It will also take the different render layers (if you have them), and overall all the information will come from this file.
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/5.jpg
Step 6
Also the file’s output directory will be the same as specified in the project of the file.
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/6.jpg
Step 7
Now to open the command line, click on the ‘Start’ button, and then in the search field type ‘cmd’. The command line should show then show up. Click to open it. If you’re using XP, first click the ‘Start’ button, then select ‘Run’, and there type ‘cmd’ in the field.
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/7.jpg
Step 8
Then, an easy way to batch render a file is to navigate to the folder with the particular file you want to render. Let’s say the folder is ‘C:\Users\Pipera\Desktop\Project\My Projects\Project’, and in that folder there’s a file called ‘Concept_Scene_1’. To render it, first you need to enter the directory type ‘cd’, and the name of the folder (in this case it will be ‘cd C:\Users\Pipera\Desktop\Project\My Projects\Project’). Now to render the file, just type ‘Render FileName_and_Extension.mb (for Maya Binary). In this case the command line will look like this ‘Render Concept_Scene_1.mb’
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/8.jpg
Step 9
In general, when rendering from the command line, the batch renderer will always take the settings from the file. But there’s a way to edit the settings if you need to, without opening the file again and saving it. These settings are called ‘flags’, and are typed after the ‘Render’ command and before the file name. These flags won’t change your file, just the render that you’re going to output. To see all the different flags, open the command line and type ‘Render –h’
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/9.jpg
In this Quick Tip tutorial, you will learn how to batch render Maya scenes faster using the Windows command line, and in this way, maximize the amount of processing power you can get from your computer.
Step 1
First if you’re using Windows 7, and the latest version of Maya 2010, you need to set the path of the mayabatch to the systems’ Environment Variables. Right click on ‘Computer’ and select ‘Properties’. In the window that opens, click on ‘Advanced System Settings’.
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/1.jpg
Step 2
In the window that pops up, select the ‘Advanced’ tab on top, and then click on ‘Environment Variables’.
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/2.jpg
Step 3
Under ‘System Variables’, scroll and find the one with the name ‘Path’, select it, and click the ‘Edit’ button.
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/3.jpg
Step 4
In the window that comes up next to ‘Variable value:’, scroll to the end of the field, and add ‘;’ plus the path to your Maya directory (and its ‘bin’ folder). By default the directory is ‘C:\Program Files\Autodesk\Maya2010\bin’ Then click ok on all of the windows to close them.
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/4.jpg
Step 5
When rendering your file through the command line, the batch renderer will take all of the settings from the Maya file. These include settings in the render options, such as: the file name of the output files, image format, frame padding, start and end frames, renderable cameras, image size, and all of the other quality and render settings in the render set up. It will also take the different render layers (if you have them), and overall all the information will come from this file.
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/5.jpg
Step 6
Also the file’s output directory will be the same as specified in the project of the file.
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/6.jpg
Step 7
Now to open the command line, click on the ‘Start’ button, and then in the search field type ‘cmd’. The command line should show then show up. Click to open it. If you’re using XP, first click the ‘Start’ button, then select ‘Run’, and there type ‘cmd’ in the field.
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/7.jpg
Step 8
Then, an easy way to batch render a file is to navigate to the folder with the particular file you want to render. Let’s say the folder is ‘C:\Users\Pipera\Desktop\Project\My Projects\Project’, and in that folder there’s a file called ‘Concept_Scene_1’. To render it, first you need to enter the directory type ‘cd’, and the name of the folder (in this case it will be ‘cd C:\Users\Pipera\Desktop\Project\My Projects\Project’). Now to render the file, just type ‘Render FileName_and_Extension.mb (for Maya Binary). In this case the command line will look like this ‘Render Concept_Scene_1.mb’
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/8.jpg
Step 9
In general, when rendering from the command line, the batch renderer will always take the settings from the file. But there’s a way to edit the settings if you need to, without opening the file again and saving it. These settings are called ‘flags’, and are typed after the ‘Render’ command and before the file name. These flags won’t change your file, just the render that you’re going to output. To see all the different flags, open the command line and type ‘Render –h’
http://cgtuts.s3.amazonaws.com/000_QuickTips/013_Maya_BatchRender/9.jpg