Search found 11 matches

by tomsawyer
Tue Oct 17, 2017 10:31 am
Forum: Lua Scripting
Topic: save layered .EXR (render passes) using command line
Replies: 12
Views: 14740

Re: save layered .EXR (render passes) using command line

Hi adrienneloux
I don't use deadline, not sure how to integrate this in deadline.
I use .bat files to render sequences of images - from different cameras, in my case - but probably you could use .bat files for different purposes i.e animation etc.

Since deadline supports lua, I suppose you don't ...
by tomsawyer
Thu Aug 31, 2017 12:27 pm
Forum: Lua Scripting
Topic: .renderState - simpliest possilbe question... please help
Replies: 4
Views: 5262

Re: .renderState - simpliest possilbe question... please help

Thanks for the hints!

@ Beppe: i have used something similar - I check if the renderState is 4 (rendering)
local function isDone()
renderIsDone = false
stats = octane.render.getRenderResultStatistics()
if (stats.renderState == 4) then renderIsDone = true end
return renderIsDone


@roeland ...
by tomsawyer
Thu Aug 31, 2017 8:37 am
Forum: Lua Scripting
Topic: save layered .EXR (render passes) using command line
Replies: 12
Views: 14740

Re: save layered .EXR (render passes) using command line

Hi doca!
The "Render target" should be the name of the render target node in your octane scene. It is case sensitive.
by tomsawyer
Wed Jul 12, 2017 4:47 pm
Forum: Lua Scripting
Topic: save layered .EXR (render passes) using command line
Replies: 12
Views: 14740

Re: save layered .EXR (render passes) using command line

If anyone else needs to render multi-pass EXR using command line:
create a "batchMultiExr.lua" file (where your .bat file is located) with this code:

local function createRenderPassExportObjs(renderPassesNode)
local objects = {}
for _, renderPassId in ipairs(octane.render.getAllRenderPassIds ...
by tomsawyer
Mon Jul 10, 2017 9:42 am
Forum: Lua Scripting
Topic: save layered .EXR (render passes) using command line
Replies: 12
Views: 14740

Re: save layered .EXR (render passes) using command line

I actually was able to crash Octane with a script, would you like to have that? At the end of your script there could be a forced crash, maybe with a timed delay it would work! Actually...
No.

But thanks anyway! :lol:

Octane batch: " -e, --exit Close the application when rendering is done"

If ...
by tomsawyer
Thu Jul 06, 2017 11:42 am
Forum: Lua Scripting
Topic: save layered .EXR (render passes) using command line
Replies: 12
Views: 14740

Re: save layered .EXR (render passes) using command line

Found it here:
viewtopic.php?f=73&t=39600

arg - table containing all arguments specified in the .bat file
arg[1] - first argument specified in the batch file ( using --script-arg or -a)
by tomsawyer
Thu Jul 06, 2017 9:25 am
Forum: Lua Scripting
Topic: save layered .EXR (render passes) using command line
Replies: 12
Views: 14740

Re: save layered .EXR (render passes) using command line

Found it!: --stop-after-script in .bat file will exit the octane instance once the lua script has been executed - exactly what I needed!
I can finally use the above LUA script to save sequences of multi-pass EXR from my batch files... woohoo!!!

However, it would be nice to be able to pass an ...
by tomsawyer
Wed Jul 05, 2017 4:24 pm
Forum: Lua Scripting
Topic: save layered .EXR (render passes) using command line
Replies: 12
Views: 14740

Re: save layered .EXR (render passes) using command line

Does anyone know how to close/exit Octane instance (standalone) using LUA?
It is the last bit I need for my script.

The code for exporting multi-pass exr using octane batch files - if anybody needs this:
Now the images are exported after the rendering is finished (max samples are reached)


local ...
by tomsawyer
Wed Jul 05, 2017 2:46 pm
Forum: Lua Scripting
Topic: save layered .EXR (render passes) using command line
Replies: 12
Views: 14740

Re: save layered .EXR (render passes) using command line

OK, talking to myself here. It's still helpful:

I managed to create a lua script that will save a multi-pass EXR when called from the command line .bat:


octane.gui.dispatchGuiEvents(30000)

local function createRenderPassExportObjs(renderPassesNode)
local objects = {}
for _, renderPassId in ...
by tomsawyer
Fri Jun 30, 2017 12:34 pm
Forum: Lua Scripting
Topic: .renderState - simpliest possilbe question... please help
Replies: 4
Views: 5262

.renderState - simpliest possilbe question... please help

Could someone help me out with a very basic task:

using LUA, I want to know if the current render target has finished rendering (had reached the samples/pixel)

if I do in Script window: print (octane.renderState) , it will return "table".

I am new to LUA/octane - forgive my blindness on the ...

Go to advanced search