Render and save to PNG all render targets

Forum for OctaneRender Lua scripting examples, discussion and support.
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

MB wrote:Kavorka,

Of course having an option like that is possible, if you don't check it however, and then export a batch of render targets where all names are not unique, you will end up overwriting one or more of them which could be pretty annoying. The numbers guarantee that file names are unique regardless of what silly things a user might instruct the software to do. It is also faily easy for you to remove the number appended to the file name in the script.

I have another question, should there be an option to ignore the max samples value if a kernal node is attatched to the render target, this way you could do differnt numbers of samples depending on what type of kernal is being used.

best

Mark
Hey Mark,

I think it would be great to have an override. For example info channels kernels in the batch don't need all that many samples to converge.

cheers,
Thomas
kavorka
Licensed Customer
Posts: 1351
Joined: Sat Feb 04, 2012 6:40 am

Loving this script!

In my current project, we are rendering out conference tables. For this set, there is several different tops, but only 3 bases. I was able to export the bases separately and the rest of the scene by itself. Then quickly create geometry groups to add my 5 tops to the 3 bases. Setup my 15 render targets and now I can just let it go over night :)
In the image, each horizontal line is a different top.

After this, the next product line has 5 tops and 8 bases. Each top has a couple of different sizes.
So by just importing each base once and each top once (everything will fit in my VRAM) I will setup to render over 100 different item images. I hope this works, haha.


As a side note, it would be really cool to have it show a checklist for each render target, so you can turn them off and on for the batch render. For instance, if I have to add one more base to this product line, it will be very easy to bring it in, connect it to my preexisting tops and render them out. But I would have to delete all of my other render targets so it only renders what I want. If you have a scene with 4 camera views, you may want to render 3 of them, but not the 4th. ect.


Thank you so much for this script!

(Edit: didnt upload image)
Attachments
Node setup.jpg
Intel quad core i5 @ 4.0 ghz | 8 gigs of Ram | Geforce GTX 470 - 1.25 gigs of Ram
User avatar
MB
Licensed Customer
Posts: 168
Joined: Tue Jan 15, 2013 3:41 am
Location: Washington, D.C.
Contact:

Thomas has already anticipated your need, try downloading his latest version of the script. I plan to further modify it to write a log file as in our office its very useful to know the render times/settings for future planning of reruns etc. Will post when it is done.
Windows 11, 2x Intel I9, 64GB Ram, 2x GTX 1080 TI, 1 x RTX 380 TI, Oculus Quest 2
kavorka
Licensed Customer
Posts: 1351
Joined: Sat Feb 04, 2012 6:40 am

Sweet!!!!!
Dont know how I missed that.
Anyway there can be a select all/deselect all button? I might be the only one setting this up for 80 render targets, but maybe someone else would need that too.
Intel quad core i5 @ 4.0 ghz | 8 gigs of Ram | Geforce GTX 470 - 1.25 gigs of Ram
kavorka
Licensed Customer
Posts: 1351
Joined: Sat Feb 04, 2012 6:40 am

Just noticed if you open the script and just close it, it gives a warning that there was no output folder selected.
Intel quad core i5 @ 4.0 ghz | 8 gigs of Ram | Geforce GTX 470 - 1.25 gigs of Ram
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

kavorka wrote:Just noticed if you open the script and just close it, it gives a warning that there was no output folder selected.
I didn't notice that. I did get an error when I would browse for an output directory and then cancel the file browser again. Here's the updated script:
batch_render.lua
(12.34 KiB) Downloaded 342 times
cheers,
Thomas
kavorka
Licensed Customer
Posts: 1351
Joined: Sat Feb 04, 2012 6:40 am

You are on the ball today :)
Intel quad core i5 @ 4.0 ghz | 8 gigs of Ram | Geforce GTX 470 - 1.25 gigs of Ram
Faizol
Licensed Customer
Posts: 88
Joined: Wed Jan 20, 2010 10:46 am

Hi all,

How many options do we have for rendered image type aside from PNG8? What about PNG16, tone-mapped exr and exr?
Fedora 17 | 16 GB RAM | Quadro 4000 | driver = nvidia 304.xx & CUDA 4.0
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

Faizol wrote:Hi all,

How many options do we have for rendered image type aside from PNG8? What about PNG16, tone-mapped exr and exr?
Hi Faizol,

You're absolutely right, here is a script that allows you to specify the output format.
batch_render.lua
(13.83 KiB) Downloaded 346 times
cheers,
Thomas
User avatar
stratified
OctaneRender Team
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

kavorka wrote:Sweet!!!!!
Dont know how I missed that.
Anyway there can be a select all/deselect all button? I might be the only one setting this up for 80 render targets, but maybe someone else would need that too.
Hi Kavorka,

Yep,enable/disable all might come in handy. Here's the modified script:
batch_render.lua
(14.86 KiB) Downloaded 347 times
cheers,
Thomas
Post Reply

Return to “Lua Scripting”