Batch Camera Render

246 votes
Version: 
1.9.15
Date Updated: 
02/06/2015
Author Name: 
Sergo Pogosyan

This script aims to replace standard 3dsmax's Batch Render and imitates Houdini Output Node workflow. Using it you can specify rendering parameters - frame size, frame number, output path - directly to camera object, so every camera in scene 'knows' what it intended to render. Additional functionality is Lighting Assignment - you can specify which light will be turn on or off for selected camera during the rendering.

Recent update:

  • Region render parameter can be specified for each camera
  • Set Viewport button sets viewport camera and resolution and aspect as well
  • It is possible now to specify backburner servers and server groups for silent rendering submit (code editing required)

Here are the details: http://usakhelo.github.io/batchcam/batchcam-1.9.15.html

Script's website - http://usakhelo.github.io/batchcam/

Github - https://github.com/usakhelo/batchcam

2015 Updates

  • Vray Elements fixed for Vray 3 and Vray output saving with VFB color correction
  • Cancelling of rendering of multiple cameras at once,
  • Hierarchical ini files

2013 Updates

  • Drag-n-drop of cameras in list
  • Camera list window size can be changed (script restart required)
  • When committing region render it is possible to switch to view render without restarting the render
  • Keyword syntax can be used in Scene State names - thanks to Stefan Runevik for suggestion

2011 Updates

  • Preview button added - renders only current frame without saving anything - no images, no vray maps, no scripts running, no elements.
  • Ortho mode added to Vray rollout - it turns any camera to orthographic, including Vray Physical camera.
  • Copy/Paste from one camera to one/several cameras - use new buttons at the top of the window.
  • Submit Scripts section - you can assign script files that will run on each render submit. Per Submit script runs once per render submit and Per Camera script runs for each camera before submit. All these scripts run on local machine, not on render server.
  • Last Rendered Location field - here is stored last render file location. Very useful for locating last-time rendered images.
Additional Info: 

Installation:

Run this script with Maxscript -> Run Script command from any folder on your hard drive, then go to the *'Customize User Interface' -> 'Toolbars'*, browse to category 'Sergo Pogosyan' and add 'Render scene cameras...' button to the toolbar or to the menu.

Usage:

When you start this script it iterate over all cameras in scene and list them in the dialog box. To each of these cameras you can assign frame resolution, number of frames to render including nonsequential frames, output file location and lighting setup. All these properties can be changed for one or several selected cameras. Output file location is split to folder path and file name, so you can specify new folder for all selected cameras in scene. 'Lighting assignement' section contains three list: Solo light list contains lights that will be only lights turned on during the rendering, 'Forced On' and 'Forced Off' lights are turned on or off respectively during the rendering. After all these setting will be set up (if some properties is not set value from the Render Setup will be used), check the camera(s) in the list and hit Render button. Check Net Render checkbox to submit network render job.

Supported lights: All bundled 3ds max lights, all Vray Lights
Supported cameras: All bundled 3ds max cameras, Vray PhysicalCamera

Version Requirement: 
3ds max 2008-2014. 32-bit and 64-bit.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sergo's picture

Script doesn't alter camera roll

I've tried the script on camera with animated roll angle and I could not reproduce roll reset.
If you can reproduce the bug please post the steps so that I could follow and get the same result.

bloomimages's picture

camera roll is overwritten

very useful script I would love to use on all my projects.

One bad bug: The camera roll parameter is reset to 0,0 which is very annoying as I am trying to render 11 different aerial views with different camera roll parameters from one file. I guess it is back to traditional batch render without passes...

sergo's picture

That's interesting. Could you

That's interesting. Could you just post render settings screenshot here?

I've tried on 2012+vray 2.3 and it seems to work. It may be because of vray 3, but I need to test further.

sclifford's picture

Wildcards for saving light cache don't work

Hi - maybe I've got my render dialog set incorrectly but I can't get the script to save my Light Cache to the defined filename per your example (%cameraname%.vrlmap). It works fine for the Irradiance Map but not light cache. It won't override the setting of the Vray dialog. Which means the vrlmap gets overwritten for each camera, and can't be loaded for the final pass.

I tried turning off autosave in the Vray dialog but then it won't save anything.

I'm using Vray 3.2 on Max 2016.

Thanks! This script would be a life saver if I could get it working for me.

sergo's picture

No, sorry, there's no way to

No, sorry, there's no way to set two different settings for one camera.
You need to duplicate actual camera, then copy/paste settings and then set scene state to different one.

locb's picture

Sorry for my bad english

Sorry for my bad english )

Not "merge", some times i need to show two renders from 1 camera with diffrent "scene states", like when i'm render room with sofa in there and without. I use rmb>save scenestate and use it in standart batchrender(one camera and diffrent scene state)

In BatchCameraRender i can choose scene state for camera, but only once, for diffrent scene state i need to change it manualy.

So is it possible to make function render from 1 camera with diffrent scene state without manual changes after every render?

Не понял про "merge", иногда мне нужно сделать рендер с одной камеры, но разными scene state, к примеру мне нужне рендер комнаты с софой и без нее. Я использую rmb>save scenestate и стандартный batchrender (беру одну камеру и назначаю ей разные scene stat)

В BatchCameraRender, я могу выбрать scene state, для камеры, но только один раз, и для второго scene state, я должен переключить его в ручную.

Отсюда вопрос, можно ли добавить функцию рендера с одной камеры но разными scene state без постоянно переключения вручную?

sergo's picture

I'm not sure if I get it

I'm not sure if I get it right - are you going to "merge" scene states?

locb's picture

Hi Sergo Is it possible to

Hi Sergo
Is it possible to add a function to duplicate the camera to do with one camera render two sceen state?

Привет, есть ли возможность добавить функцию дублирования камеры, чтобы с одной камеры делать рендер 2х sceen state?

sergo's picture

I'm not sure if I get it

I'm not sure if I get it right - If you don't want to save the file you can uncheck Save File checkbox, if you are rendering to the same file you will be prompted with resave file dialog box. Which problem do you want to get rid of?

Напишите по-русски, не очень понятно что происходит, можно в личку.

zyuka2's picture

Save file(

Hello!
All time included render output_Save file. Accordingly, the need to manually validate prompted to overwrite the file. How to get rid of this problems? Really like your script)))

AttachmentSize
snimok.jpg 18.58 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.