I need some help using the --script switch from within the command line (octane standalone).
I am using the command line to batch render a set of different cameras (no animation, just a bunch of different cameras for many static scenes).
This workflow worked for single passes. But now I need to output different render passes for each camera and I'd want to save each image in a layered .EXR.
The command line won't let me output layered .EXR - I have tried setting the scene with render passes, the .exr's rendered with command line only contain the "main" image (set in the kernel).
On the other hand, this lua function is doing exactly what I need:
- Code: Select all
octane.render.saveRenderPassesMultiExr("D:\\TEST\\layered.exr", renderPassObjects)
I saved a lua script containing this function and tried to call this from within the .bat. using the --script switch,
This is a line from my .bat (I have hundreds of those lines):
- Code: Select all
"C:\Program Files\OTOY\OctaneRender 3.05.3\octane-cli.exe" -e --cam-pos-x 0.0 --cam-target-x 0.0 --cam-pos-y 1.73424 --cam-target-y 1.73424 --cam-pos-z 0.819558 --cam-target-z -0.180442 --cam-fov 360 --cam-scale 2 --no-gui -q -t "Render target" --samples 200 --film-width 1024 --film-height 512 --output-png color0.png --script "D:\TEST\saveRenderPasses.lua" color.orbx
But I get this error: "An unhandled win32 exception occured in octane.exe [16996]"
This is probably because the script tries to save images before any image has been rendered...
Could anyone help me to get this working / point me in the right direction?
PS: reading through the forums I understand that writing a lua script for batch-rendering all the cameras would be far more advantageous then using the command line .... my problem is that I already have a lot of .bat files with different camera positions so the immediate solution for me is to use those .bat files to batch-render layered .EXR's (containing all render passes)
TS
“It's not what you don't know that kills you, it's what you know for sure that ain't true.” - Mark Twain