Corona Renderer Forum

General Category => Porting and API => Corona for Blender => Topic started by: faiktofur on 2019-05-28, 15:48:56

Title: Batch Render
Post by: faiktofur on 2019-05-28, 15:48:56
Hello @blanchg ,

I wonder if Blender can get rendered image just after Corona finishes rendering and denoising.

I'm a 3ds max user right now and want to transition to Blender and can't live without Corona :)

My working style is like; work @daytime render @night so I wrote a maxscript for corona which can select&view from camera and edit some important settings and render&save any file format.

Now I want to write that script for Blender so I can batch render @night. Sorry if I missed any thing to solve the problem.

Title: Re: Batch Render
Post by: blanchg on 2019-05-28, 21:45:45

Absolutely it can.

Not sure how you want to run but I have this script that I use to run multiple renders one after the other:

I need the clean up code and settings change to be different for each test so it also has a different runner for each file but you could have the same runner for each file.

I run it like this:

A basic runner would probably be the RunTests function from this file:

Let me know if you run into any issues.

Title: Re: Batch Render
Post by: faiktofur on 2019-05-28, 22:40:52
Scenario is; I have many cameras within only one blend file. With help of the script I want to write, I can set view for different cameras, set resolution, exposure or states (its like hide these layers for this camera but be visible for other camera) etc. then set path for output and render them.

What i see now, if i hit render, corona vfb shows and finishes, but i can't get rendered image untill i close vfb so I can't queue my cameras.

In your test you get blend files from folder and run tests on those blend files.

Maybe I can leave batch part so i can split scene by cameras and follow your approach :) Let me see how far i can get.

Thanks for your precious time.
Title: Re: Batch Render
Post by: blanchg on 2019-05-28, 22:43:11
If you use noise target or pass numbers to end the render and set the VfB to none then corona will exit and return the image automatically.
Title: Re: Batch Render
Post by: faiktofur on 2019-05-28, 22:47:08
Great, that's what i was looking for.

Thanks A lot