Page 1 of 1

Close Octane through lua api

PostPosted: Tue Dec 23, 2014 5:57 pm
by PolderAnimation
Hi All,

I'm looking for a way to close the octane application from within a lua script.
The reason is that I'm working on a render batcher for our pipeline.
Previously I used the command line arguments to render just one frame at a time and when octane finished the --exit flag made sure octane closed down and my pipeline octane thread ended so it could continue with the next commandline render job.
But we needed to use the renderTargets and renderPasses so switched to a lua script to have control over those as well as not having to reload all obj and texture data for every target and frame.
So now I start ocatne through the commandline like this:
C:\Program Files\OTOY\OctaneRender 2.14\octane.exe --exit --script R:/<someProjectName>/octane/shot03002_batch.lua
Everything works fine, but after the script finishes octane remains open, even though the --exit was set. And I have not found anything in the lua api nor on this forum how to close octane.
Is there a function to close octane or some callback maybe to trigger the exit after render completion set by the --exit flag?

Thanks in advance!

Jean-Paul Tossings
Polder Animation

Re: Close Octane through lua api

PostPosted: Tue Dec 23, 2014 6:33 pm
by abstrax
You can use these two command line arguments:
Code: Select all
     Stops Octane after the specified script has finished - this is
     implicitely enabled, if --no-gui is set

     Disables the creation of a user interface if a script file is