Batch Camera Render



New version release - 1.9.5 - New version with default values and with onLoad and onMerge callbacks and some other cool features.
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.
UPDATE 2010-09-08:
Announcement:
Currently I'm starting to work on the totally new version of the script, with adding, removing and duplicating of the render presets, just as in standard 3ds max's Batch Render tool. New version will be named as BatchCam 2, and this version is the last in BatchCam 1 brunch.
New Features and Improvements:
The main new feature is a default values assignment for the undefined camera properties. Now all new cameras will have some setting set to default values. Default values are saved in the INI file under the [Default Settings] category. Here is the list of all properties and example of default values for some of them:
BatchCameraRender_frames =undefined
BatchCameraRender_framerange_from =undefined
BatchCameraRender_framerange_to =undefined
BatchCameraRender_anim_frame_range =true
BatchCameraRender_frame_width =undefined
BatchCameraRender_frame_heigth =undefined
BatchCameraRender_image_aspect =undefined
BatchCameraRender_render_output =%projectfolder%\%cameraname% .exr
BatchCameraRender_elements_state =undefined
BatchCameraRender_elements_output =undefined
BatchCameraRender_solo_lights =undefined
BatchCameraRender_on_lights =undefined
BatchCameraRender_off_lights =undefined
BatchCameraRender_scene_state =undefined
BatchCameraRender_render_preset =undefined
BatchCameraRender_irmap_mode =undefined
BatchCameraRender_auto_save_irmap =undefined
BatchCameraRender_auto_switch_irmap =undefined
BatchCameraRender_irmap_read_file =undefined
BatchCameraRender_irmap_save_file =undefined
BatchCameraRender_lcmap_mode =undefined
BatchCameraRender_auto_save_lcmap =undefined
BatchCameraRender_auto_switch_lcmap =undefined
BatchCameraRender_lcmap_read_file =undefined
BatchCameraRender_lcmap_save_file =undefined
BatchCameraRender_prerender_script =undefined
BatchCameraRender_prerender_enabled =undefined
BatchCameraRender_postrender_script =undefined
BatchCameraRender_postrender_enabled =undefined
Other new features:
- Now script updates it's camera list automatically on different events - file opening, file merging, max resetting, creating of the new file.
- Render Preset setting is applied first. After that, applied all other scripted properties. Otherwise the effect of Render Preset is overwritten by the scriped properties.
- Element file name now is made up of mainFileNameOnly + "_" + elementType + "_" + elementName + mainFileType parts. This allows you to have multiple elements of one type.
- Image Aspect added as a separate property. This allows to fix resolution rounding bug, finally.
- %projectfolder% keyword now expands to the full path, so it can be used as a root path.
- Netrender Options rollout renamed to the System Options.
- Open ini file button added to Options rollout.
- Save as default button added to Options rollout. This button allows you to save values of all properties of the current camera as default values.
- Command Line option in System Options rollout. Allows you to set the program used to open output folder. If this line is empty standard Explorer window opens the folder. I'm using XnView image viewer so my command line looks like this - "C:\Program Files (x86)\XnView\xnview.exe".
Known bugs:
New version may have problems with cameras used with old versions of the script, when "user properties" was utilized to store script settings. If you notice that some of the settings (frame range settings in my case) is not saving or not changing - just delete these settings from the User Properties tab in Object Properties window.
It is recommended to restart 3ds max after installing the script.
Download and full description here
UPDATE 2010-04-28:
This is mainly bugfix release but it has some new features
New Features and Improvements:
- Scripts rollout - could be used to run custom scripts before and after the rendering. It is in beta stage and is not fully functional.
- Daylight system is treated as a normal light source and can be added to light lists in the Light Assignement section.
- 3ds max version checking added in several places to run script under 3ds max 2008 and 3ds max 9. Render presets parameter doesn't work in old version of max.
- Resolution rounding bug fixed.
- Many other bug fixes.
It is recommended to restart 3ds max after installing the script.
Download and full description here
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
Full and new description : http://sergepogosyan.com/en/scripts/BatchCameraRender/


Comments
I sergey, thank for your fast
I sergey, thank for your fast answer, I just sent you by mail a TEST scene, and explained well what's the problem.
I hope your're right, and maybe It's just my wrong way to use the script.
Please send me the camera
Please send me the camera objects from the scene that doesn't work well. I'll try to fix it. I need just the camera objects, just save selected them.
I've made the tests with render elements and they rendered as they should be.
my scripts and tips/tricks:
www.sergepogosyan.com
RenderElements doesn't
RenderElements doesn't work!
unfortunally RenderElements are not saved correctly if there are more then one. I think becouse It doesn't recognize their names exactly.
I hope you fix this!
New Features and
New Features and Improvements:
- 3ds max version checking added in several places to run script under 3ds max 2008 and 3ds max 9. Render presets parameter doesn't work in old version of max.is this mean 3dsMax 9 user cant save the render preset param ? so sad...
BTW thank for the script always awesome improvement.....
thank many sergo , your my life rescuer.
thanks for this new
thanks for this new version!
Too many fixes and new features :) nice
It makes me remember in RENDER / DONT RENDER certain objects in scene feature (please, stilll need it),
and now script is almost doing everything, what about SHUTDOWN PC when finish job? as well send email with small final images to user?
BTW every new update from this script is just awesome Sergo
CONGRATULATIONS!!!
thanks
Ok I will wait... But is
Ok I will wait...
But is there something I can be doing wrong? I run the ms file from the Maxscript/Runscript.
This is all- right?
Can not test under max2011.
Can not test under max2011.
my scripts and tips/tricks:
www.sergepogosyan.com
Yes but there is not such
Yes but there is not such category "sergo pogosyan". It doesnt appear anymore in max 2011.
macroScript
macroScript BatchCameraRender
category:"Sergo Pogosyan"
toolTip:"Render scene cameras with specified rendering parameters"
buttonText:"BatchCam"
just read .ms file , and you'll know where its placed.
I tried installing into max
I tried installing into max 2011 today. I run the ms file from Maxscript menu and restart 3dsmax. But I can't see any Sergo Pagosyan category anymore.
Where is it?