Batch Render from command line _ LUA script

Forums: Batch Render from command line _ LUA script
Forum for OctaneRender Lua scripting examples, discussion and support.

Batch Render from command line _ LUA script

Postby calus » Thu Feb 28, 2019 9:31 pm

calus Thu Feb 28, 2019 9:31 pm
Octane command line doesn't provide a built-in way for batch rendering animation,
so here is an advanced LUA script for that.

cmdBatchRender.lua
(22.23 KiB) Downloaded 192 times

This is a hack based on the batch rendering script shipping with Octane.


USAGE:

--script path to this script -a output path -a render targets -a image format -a start frame -a end frame -a max samples

(arguments -a are optional)


- If no render targets name arguments are provided in the command line, then all render targets are rendered.
- if no start/end frame argument is provided then the entire timeline is rendered.
- If no output path argument is provided, an "images" folder is created for that next to the orbx/ocs file.
- Number arguments have an expected order : start frame, end frame, max samples. (as the script have no way to guess which number argument is for what)
- Image format for a specific render target must be declared before the render target.


Windows command line example :
Code: Select all
octane.exe C:\test.orbx --no-gui --script C:\cmdBatchRender.lua -a C:/images/ -a 1 -a 100 -a 1024 -a EXR16 -a renderTarget1


keywords for image format : PNG8, PNG16, EXR16, EXR16TONEMAPPED, EXR, EXRTONEMAPPED


Default settings are easy to change at the top of the script.
Pascal ANDRE
--------------------
Maya 2019, Windows 7, 128 GB RAM
4x GTX 1070, driver 430.39
--------------------

--------------------
Join MAYA OCTANE USERS Skype discussion here :
https://join.skype.com/LXEQaqqfN15w
--------------------
calus
Licensed Customer
Licensed Customer
 
Posts: 1295
Joined: Sat May 22, 2010 9:31 am
Location: Paris

Re: Batch Render from command line _ LUA script

Postby glimpse » Fri Mar 01, 2019 2:15 pm

glimpse Fri Mar 01, 2019 2:15 pm
thank You!
tomGlimps | [email protected] | 32GB | TitanBlack
Available for Freelance, Coaching & Mentoring
User avatar
glimpse
Licensed Customer
Licensed Customer
 
Posts: 3579
Joined: Wed Jan 26, 2011 2:17 pm

Re: Batch Render from command line _ LUA script

Postby cgpanda » Tue Apr 02, 2019 10:34 pm

cgpanda Tue Apr 02, 2019 10:34 pm
Thanks for the script!

Is there a way to render multiple projects? Like a render queue.

I have for example 17 stand alone projects. I would love to let it render overnight one by one.

Thanks in advance!
cgpanda
Licensed Customer
Licensed Customer
 
Posts: 48
Joined: Mon Sep 09, 2013 3:58 pm

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 2 guests

Sun Sep 15, 2019 9:40 am [ UTC ]