Close Octane through lua api

Forums: Close Octane through lua api
Forum for OctaneRender Lua scripting examples, discussion and support.

Close Octane through lua api

Postby PolderAnimation » Tue Dec 23, 2014 5:57 pm

PolderAnimation 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
Win 10 64bit | 5 x 1080ti | i7 7700K | 64GB
User avatar
Licensed Customer
Licensed Customer
Posts: 306
Joined: Mon Oct 10, 2011 10:23 am
Location: Netherlands

Re: Close Octane through lua api

Postby abstrax » Tue Dec 23, 2014 6:33 pm

abstrax Tue Dec 23, 2014 6:33 pm
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
In theory there is no difference between theory and practice. In practice there is. - Yogi Berra
User avatar
OctaneRender Team
OctaneRender Team
Posts: 5241
Joined: Tue May 18, 2010 11:01 am
Location: Auckland, New Zealand

Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 2 guests

Thu Apr 22, 2021 3:23 am [ UTC ]