Autosave render targets - please............................

Generic forum to discuss Octane Render, post ideas and suggest improvements.
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
Post Reply
User avatar
smicha
Licensed Customer
Posts: 3151
Joined: Wed Sep 21, 2011 4:13 pm
Location: Warsaw, Poland

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.
3090, Titan, Quadro, Xeon Scalable Supermicro, 768GB RAM; Sketchup Pro, Classical Architecture.
Custom alloy powder coated laser cut cases, Autodesk metal-sheet 3D modelling.
build-log http://render.otoy.com/forum/viewtopic.php?f=9&t=42540
manalokos
Licensed Customer
Posts: 441
Joined: Fri Nov 18, 2011 4:43 pm

you can use command line batch for this. it works perfectly
User avatar
smicha
Licensed Customer
Posts: 3151
Joined: Wed Sep 21, 2011 4:13 pm
Location: Warsaw, Poland

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.
3090, Titan, Quadro, Xeon Scalable Supermicro, 768GB RAM; Sketchup Pro, Classical Architecture.
Custom alloy powder coated laser cut cases, Autodesk metal-sheet 3D modelling.
build-log http://render.otoy.com/forum/viewtopic.php?f=9&t=42540
shelshok
Licensed Customer
Posts: 20
Joined: Tue Apr 09, 2013 4:37 pm

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.
User avatar
smicha
Licensed Customer
Posts: 3151
Joined: Wed Sep 21, 2011 4:13 pm
Location: Warsaw, Poland

shelshok,

Many thanks. I'll play with the code and let you know how it goes.
3090, Titan, Quadro, Xeon Scalable Supermicro, 768GB RAM; Sketchup Pro, Classical Architecture.
Custom alloy powder coated laser cut cases, Autodesk metal-sheet 3D modelling.
build-log http://render.otoy.com/forum/viewtopic.php?f=9&t=42540
Post Reply

Return to “General Discussion”