# Batch render scripts that handle IR/LC saving/loading

**URL:** <https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801>\
**Category:** General\
**Created:** [August 18, 2016, 9:02pm UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801 "2016-08-18T21:02:57Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neilg](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/neilg/32/7044_2.png) [@Neilg](https://forums.chaos.com/u/Neilg)\
**Post date:** [August 18, 2016, 9:02pm UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/1 "2016-08-18T21:02:57Z")

</div>

Hey everyone.  
Anyone know of any scripts that can help me batch render from a file? There are 36 renders that need to be sent from it, each camera needs a pre-calculated IR/LC pass setting off first then a base render going with a couple settings changed.

Each IR/LC & output file can be named after the camera, they all have code numbers so I don’t need any fancy naming tools. They’ll all be rendered on a single machine using DR too.  
With compress on save turned on, the total scene & xrefs works out to be around 3.4gb. it’s a solid few minutes between pressing render and getting back in to switch to the next camera…

---

<div class="post-metadata">

**Author:** ![chriserskine](https://avatars.discourse-cdn.com/v4/letter/c/ed655f/32.png) [@chriserskine](https://forums.chaos.com/u/chriserskine)\
**Post date:** [August 19, 2016, 12:05am UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/2 "2016-08-19T00:05:52Z")

</div>

have you tried this?

> **[Batch Camera Render | ScriptSpot](https://scriptspot.com/3ds-max/scripts/batch-camera-render)**
>
> The community archive of 3ds Max scripts, plugins, MCG tools and tutorials — every script, forum thread and comment since 2000.

I haven’t tested it doing pre-calculated IR/LC. but looks like its possible.

---

<div class="post-metadata">

**Author:** ![Neilg](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/neilg/32/7044_2.png) [@Neilg](https://forums.chaos.com/u/Neilg)\
**Post date:** [August 19, 2016, 12:16am UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/3 "2016-08-19T00:16:49Z")

</div>

> [@Guild to using VrayRT as a production renderer????](https://forums.chaos.com/t/guild-to-using-vrayrt-as-a-production-renderer/52113/4):
>
> have you tried this?
> 
> [Batch Camera Render | ScriptSpot](http://www.scriptspot.com/3ds-max/scripts/batch-camera-render)

I have been trying, but it’s not behaving very well. I can change one thing on it’s interface, then the second thing I change I get an error that says ‘unable to convert: undefined to type:float’  
If I close the script, I can reopen it and make one more change.  
I need to change render width, height, IR map output etc on 36 cameras and I can only do one at a time. naturally it’s one of those scripts that has a bit of a delay every time it opens. ha.

edit: think I cracked it. it has a copy & paste function!  
wish me luck

---

<div class="post-metadata">

**Author:** ![chriserskine](https://avatars.discourse-cdn.com/v4/letter/c/ed655f/32.png) [@chriserskine](https://forums.chaos.com/u/chriserskine)\
**Post date:** [August 19, 2016, 12:39am UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/4 "2016-08-19T00:39:15Z")

</div>

can you use the %cameraname% in the save/load for IR/LC

I haven’t tested it in that way before. but that should really be only thing stopping you from sending all 36 cameras off at once.

---

<div class="post-metadata">

**Author:** ![Neilg](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/neilg/32/7044_2.png) [@Neilg](https://forums.chaos.com/u/Neilg)\
**Post date:** [August 19, 2016, 12:39am UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/5 "2016-08-19T00:39:23Z")

</div>

☹ When I press the ‘render’ button it pops up

MAXScript Rollout Handler Exception

-- Unknown property: “baseObject” in “Camera001”

Probably shouldve tested that before setting up 18 IR maps in it.

---

<div class="post-metadata">

**Author:** ![Neilg](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/neilg/32/7044_2.png) [@Neilg](https://forums.chaos.com/u/Neilg)\
**Post date:** [August 19, 2016, 12:40am UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/6 "2016-08-19T00:40:10Z")

</div>

> [@lights in local render vs render farm](https://forums.chaos.com/t/lights-in-local-render-vs-render-farm/52074/10):
>
> can you use the %cameraname% in the save/load for IR/LC
> 
> I haven’t tested it in that way before. but that should really be only thing stopping you from sending all 36 cameras off at once.

in the regular batch render? I never thought of this. will try now!

---

<div class="post-metadata">

**Author:** ![Neilg](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/neilg/32/7044_2.png) [@Neilg](https://forums.chaos.com/u/Neilg)\
**Post date:** [August 19, 2016, 12:51am UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/7 "2016-08-19T00:51:39Z")

</div>

Tried it - just saves the IRmap as %cameraname%.vrmap, doesnt fill it in with the name of the camera ☹

---

<div class="post-metadata">

**Author:** ![Neilg](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/neilg/32/7044_2.png) [@Neilg](https://forums.chaos.com/u/Neilg)\
**Post date:** [August 19, 2016, 1:13am UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/8 "2016-08-19T01:13:00Z")

</div>

Managed to get that script working! I had a slightly older version, got a fresh one, reinstalled and it worked fine. even remembered all my old settings.

---

<div class="post-metadata">

**Author:** ![Neilg](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/neilg/32/7044_2.png) [@Neilg](https://forums.chaos.com/u/Neilg)\
**Post date:** [August 19, 2016, 2:10am UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/9 "2016-08-19T02:10:23Z")

</div>

That script doesnt appear to support the 6x1 camera type ☹  
First time i sent all my renders using the script, I waited for one to start and it was rendering from a standard camera instead of 6x1…  
Opened the max file, and camera was set to default. must have made a mistake. Change it to 6x1, resend everything… renders in default. open the saved max file and it’s switched back to default type again. Time to leave before I give myself an aneurysm.

3 hours messing around with this later, i’m back at square one, having to press ‘render’ 72 times from a 3.5gb file. I timed how long it takes to do one (about 4min, including changing file path and waiting for max to come back after each time) and it comes out to just under 5 hours of work just to queue them all up on backburner.

Any suggestions are very welcome. I cant afford to loose 5 hours a week every week until the end of september. that would come out to a total of 30 hours… 😕  
Is anyone available to edit the script so it doesn’t change the camera type back to standard? This is a link to it - [http://usakhelo.github.io/batchcam/compiled/batchcamerarender\_1.9.22.ms](http://usakhelo.github.io/batchcam/compiled/batchcamerarender%5C_1.9.22.ms)

---

<div class="post-metadata">

**Author:** ![eyepiz](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/eyepiz/32/7037_2.png) [@eyepiz](https://forums.chaos.com/u/eyepiz)\
**Post date:** [August 19, 2016, 3:56am UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/10 "2016-08-19T03:56:12Z")

</div>

> [@Animation Irradiance Maps won't load...](https://forums.chaos.com/t/animation-irradiance-maps-wont-load/52127/2):
>
> That script doesnt appear to support the 6x1 camera type ☹  
> First time i sent all my renders using the script, I waited for one to start and it was rendering from a standard camera instead of 6x1…  
> Opened the max file, and camera was set to default. must have made a mistake. Change it to 6x1, resend everything… renders in default. open the saved max file and it’s switched back to default type again. Time to leave before I give myself an aneurysm.
> 
> 3 hours messing around with this later, i’m back at square one, having to press ‘render’ 72 times from a 3.5gb file. I timed how long it takes to do one (about 4min, including changing file path and waiting for max to come back after each time) and it comes out to just under 5 hours of work just to queue them all up on backburner.
> 
> Any suggestions are very welcome. I cant afford to loose 5 hours a week every week until the end of september. that would come out to a total of 30 hours… 😕  
> Is anyone available to edit the script so it doesn’t change the camera type back to standard? This is a link to it - [http://usakhelo.github.io/batchcam/compiled/batchcamerarender\_1.9.22.ms](http://usakhelo.github.io/batchcam/compiled/batchcamerarender%5C_1.9.22.ms)

Ouch! sorry to hear that Neilg..

batchcamerarender is my go to script for batch renders try posting it the scriptspot forums, they are some mad skilled scripters there that I’m sure can help out.

Let us know if you get it working for 6x1 cam with batchcamerarender.

---

<div class="post-metadata">

**Author:** ![AlexP](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@AlexP](https://forums.chaos.com/u/AlexP)\
**Post date:** [August 19, 2016, 9:34am UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/11 "2016-08-19T09:34:03Z")

</div>

Have you tried this one?

> **[Batch Camera Render 2 | ScriptSpot](https://scriptspot.com/3ds-max/scripts/batch-camera-render-2)**
>
> The community archive of 3ds Max scripts, plugins, MCG tools and tutorials — every script, forum thread and comment since 2000.

I use this for everything, I havent used precalced IR map for a while, but I use this for precalced LC. It supports tags like %cameraname% so you can automate almost everything.

edit: think this is the newer version of that script

---

<div class="post-metadata">

**Author:** ![chriserskine](https://avatars.discourse-cdn.com/v4/letter/c/ed655f/32.png) [@chriserskine](https://forums.chaos.com/u/chriserskine)\
**Post date:** [August 19, 2016, 9:54am UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/12 "2016-08-19T09:54:02Z")

</div>

normally i always go the 1.x.x.x version.

2 was a rewrite, it works differently. and i would say not as well.

but if your having trouble i’d give it a go.

---

<div class="post-metadata">

**Author:** ![AlexP](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@AlexP](https://forums.chaos.com/u/AlexP)\
**Post date:** [August 19, 2016, 10:00am UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/13 "2016-08-19T10:00:23Z")

</div>

> [@Happy new year!](https://forums.chaos.com/t/happy-new-year/52135/3):
>
> normally i always go the 1.x.x.x version.
> 
> 2 was a rewrite, it works differently. and i would say not as well.
> 
> but if your having trouble i’d give it a go.

Really?

What issues have you had with ver 2? Ive not had any

---

<div class="post-metadata">

**Author:** ![pg1](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@pg1](https://forums.chaos.com/u/pg1)\
**Post date:** [August 19, 2016, 12:43pm UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/14 "2016-08-19T12:43:06Z")

</div>

I have plugged this one before [RPManager About](http://rpmanager.com/about.htm) honestly can’t render anymore without it.

It will do what you need and then some.

---

<div class="post-metadata">

**Author:** ![Neilg](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/neilg/32/7044_2.png) [@Neilg](https://forums.chaos.com/u/Neilg)\
**Post date:** [August 19, 2016, 2:53pm UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/15 "2016-08-19T14:53:50Z")

</div>

I clicked on the batchcam2 in my initial search - didnt realise it was by the same guy. The images were down and the website gave a 404 so i moved past it, will take another look.

> [@Vray RT stopped working after the Service Pack Installation](https://forums.chaos.com/t/vray-rt-stopped-working-after-the-service-pack-installation/52069/7):
>
> I have plugged this one before [RPManager About](http://rpmanager.com/about.htm) honestly can’t render anymore without it.
> 
> It will do what you need and then some.

$200 for a node locked license, ouch.  
I’m going to spend until around 2pm today trying some other options and then i’ll push for this.

---

<div class="post-metadata">

**Author:** ![AlexP](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@AlexP](https://forums.chaos.com/u/AlexP)\
**Post date:** [August 19, 2016, 3:18pm UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/16 "2016-08-19T15:18:39Z")

</div>

Yeah it’s quite old now, but give it a go. Similar situation to you, I had to render 41 cube maps last night but this did it all in one click with automated naming of everything. Love it.

---

<div class="post-metadata">

**Author:** ![Neilg](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/neilg/32/7044_2.png) [@Neilg](https://forums.chaos.com/u/Neilg)\
**Post date:** [August 19, 2016, 3:53pm UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/17 "2016-08-19T15:53:30Z")

</div>

> [@t.petrov](#):
>
> Yeah it’s quite old now, but give it a go. Similar situation to you, I had to render 41 cube maps last night but this did it all in one click with automated naming of everything. Love it.

Working in vr is fun, but the logistics of it are worse than animation… at least on animation you can break shots up.

I got someone in our NY studio editing that script to let the 6x1 camera pass through

---

<div class="post-metadata">

**Author:** ![Neilg](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/neilg/32/7044_2.png) [@Neilg](https://forums.chaos.com/u/Neilg)\
**Post date:** [August 19, 2016, 5:49pm UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/18 "2016-08-19T17:49:09Z")

</div>

All solved!

This script does work - [Batch Camera Render | ScriptSpot](http://www.scriptspot.com/3ds-max/scripts/batch-camera-render)  
A lot of settings need to be left as ‘undefined’ - if you check them on or off, there is no way to ever get them back to undefined again to pull settings from the regular vray setup. It saves them in the cameras too, so the only way to get another shot once you accidentally click the wrong box is to re-make the camera under a different name and start over.

---

<div class="post-metadata">

**Author:** ![pg1](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@pg1](https://forums.chaos.com/u/pg1)\
**Post date:** [August 20, 2016, 11:33am UTC](https://forums.chaos.com/t/batch-render-scripts-that-handle-ir-lc-saving-loading/59801/19 "2016-08-20T11:33:05Z")

</div>

Render pass manager isn’t free but then again neither is your time. Best 200 bucks you will ever spend.
