Page 1 of 1
Autosave render targets - please............................
Posted: Wed Apr 24, 2013 7:26 am
by smicha
I have a project with 10 different render targets. Each of them takes about 2-3 hours to render.
I wish I could leave my computer for the night or longer and just hit "render all render targets" and autosave them as png files.
Re: Autosave render targets - please........................
Posted: Fri Apr 26, 2013 1:46 am
by manalokos
you can use command line batch for this. it works perfectly
Re: Autosave render targets - please........................
Posted: Fri Apr 26, 2013 5:46 am
by smicha
manalokos wrote:you can use command line batch for this. it works perfectly
Could you be so kind and send me an example code of how to render and save two render targets at once?
Thanks.
Re: Autosave render targets - please........................
Posted: Fri Apr 26, 2013 7:29 pm
by shelshok
If on Windows, save this to a file called batch.bat in the same folder as your ocs file.
Code: Select all
time /t > Images\started.txt
"C:\program files\OTOY\OctaneRender 1.10\octane.exe" -e -q -s 3000 --film-width 1440 --film-height 900 -t r1 -o Images\r1.png project.ocs
"C:\program files\OTOY\OctaneRender 1.10\octane.exe" -e -q -s 3000 --film-width 1440 --film-height 900 -t r2 -o Images\r2.png project.ocs
"C:\program files\OTOY\OctaneRender 1.10\octane.exe" -e -q -s 3000 --film-width 1440 --film-height 900 -t r3 -o Images\r3.png project.ocs
Then double click the file. It will make a text file with the start time, and render target r1 to r1.png, target r2 to r2.png, and target r3 to r3.png. All the options are explained in the manual, but i am using -e to exit octane after each render, -q to have octane run minimized, -s 3000 to set the max samples, the width and height are obvious, -t is the name of the rendertarget, and -o is the output file name. They are being saved to an Images folder in the same folder as the ocs and the bat file.
If you need to interrupt, close the cmd window and then the active Octane window.
Edit: Obviously, you may have to modify the path to Octane in each line based on your version.
Re: Autosave render targets - please........................
Posted: Sat Apr 27, 2013 6:11 am
by smicha
shelshok,
Many thanks. I'll play with the code and let you know how it goes.