Close Octane through lua api
Posted: Tue Dec 23, 2014 5:57 pm
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
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