Render and save to PNG all render targets

Forums: Render and save to PNG all render targets
Forum for OctaneRender Lua scripting examples, discussion and support.

Re: Render and save to PNG all render targets

Postby stratified » Thu Apr 03, 2014 3:23 am

stratified Thu Apr 03, 2014 3:23 am
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
User avatar
stratified
OctaneRender Team
OctaneRender Team
 
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

Re: Render and save to PNG all render targets

Postby kavorka » Fri Apr 04, 2014 4:18 pm

kavorka Fri Apr 04, 2014 4:18 pm
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
kavorka
Licensed Customer
Licensed Customer
 
Posts: 1351
Joined: Sat Feb 04, 2012 6:40 am

Re: Render and save to PNG all render targets

Postby MB » Fri Apr 04, 2014 7:01 pm

MB Fri Apr 04, 2014 7:01 pm
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 7 Enterprise, 2x Intel Xeon X5650 2.66 GHz, 24GB Ram, GTX 590, Quadro 5000, Quadro K4200
User avatar
MB
Licensed Customer
Licensed Customer
 
Posts: 119
Joined: Tue Jan 15, 2013 3:41 am
Location: Washington, D.C.

Re: Render and save to PNG all render targets

Postby kavorka » Fri Apr 04, 2014 7:53 pm

kavorka Fri Apr 04, 2014 7:53 pm
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
Licensed Customer
 
Posts: 1351
Joined: Sat Feb 04, 2012 6:40 am

Re: Render and save to PNG all render targets

Postby kavorka » Fri Apr 04, 2014 7:54 pm

kavorka Fri Apr 04, 2014 7:54 pm
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
kavorka
Licensed Customer
Licensed Customer
 
Posts: 1351
Joined: Sat Feb 04, 2012 6:40 am

Re: Render and save to PNG all render targets

Postby stratified » Fri Apr 04, 2014 8:07 pm

stratified Fri Apr 04, 2014 8:07 pm
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 134 times


cheers,
Thomas
User avatar
stratified
OctaneRender Team
OctaneRender Team
 
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

Re: Render and save to PNG all render targets

Postby kavorka » Fri Apr 04, 2014 8:09 pm

kavorka Fri Apr 04, 2014 8:09 pm
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
kavorka
Licensed Customer
Licensed Customer
 
Posts: 1351
Joined: Sat Feb 04, 2012 6:40 am

Re: Render and save to PNG all render targets

Postby Faizol » Sat Apr 05, 2014 3:02 am

Faizol Sat Apr 05, 2014 3:02 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
Faizol
Licensed Customer
Licensed Customer
 
Posts: 88
Joined: Wed Jan 20, 2010 10:46 am

Re: Render and save to PNG all render targets

Postby stratified » Sat Apr 05, 2014 5:16 am

stratified Sat Apr 05, 2014 5:16 am
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 141 times


cheers,
Thomas
User avatar
stratified
OctaneRender Team
OctaneRender Team
 
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

Re: Render and save to PNG all render targets

Postby stratified » Sat Apr 05, 2014 5:37 am

stratified Sat Apr 05, 2014 5:37 am
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 160 times


cheers,
Thomas
User avatar
stratified
OctaneRender Team
OctaneRender Team
 
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand
PreviousNext

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 1 guest

Thu Apr 02, 2020 7:26 pm [ UTC ]