Page 3 of 8

Re: Render and save to PNG all render targets

Posted: Thu Apr 03, 2014 3:23 am
by stratified
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

Re: Render and save to PNG all render targets

Posted: Fri Apr 04, 2014 4:18 pm
by kavorka
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)

Re: Render and save to PNG all render targets

Posted: Fri Apr 04, 2014 7:01 pm
by MB
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.

Re: Render and save to PNG all render targets

Posted: Fri Apr 04, 2014 7:53 pm
by kavorka
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.

Re: Render and save to PNG all render targets

Posted: Fri Apr 04, 2014 7:54 pm
by kavorka
Just noticed if you open the script and just close it, it gives a warning that there was no output folder selected.

Re: Render and save to PNG all render targets

Posted: Fri Apr 04, 2014 8:07 pm
by stratified
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 343 times
cheers,
Thomas

Re: Render and save to PNG all render targets

Posted: Fri Apr 04, 2014 8:09 pm
by kavorka
You are on the ball today :)

Re: Render and save to PNG all render targets

Posted: Sat Apr 05, 2014 3:02 am
by Faizol
Hi all,

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

Re: Render and save to PNG all render targets

Posted: Sat Apr 05, 2014 5:16 am
by stratified
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 347 times
cheers,
Thomas

Re: Render and save to PNG all render targets

Posted: Sat Apr 05, 2014 5:37 am
by stratified
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 348 times
cheers,
Thomas