I'd like to share the command line flags that the upcoming beta2.1 will be supporting to automate rendering of OBJ files in batch,
so users can render animations with beta2.1.
I'm posting the flags here so people who like to tinker and program can create scripts to make them.
We are also working on some scripts for people to use with blender and maybe other packages.
If you would like to make a script that could be usefull, please share it.
Code: Select all
syntax: octane <options> scenefile.ocs
COMMAND OPTIONS
---------------
-e --exit quit after maxsamples/image save
-o --output-png <string> filename (png to save)
-s --samples <integer> samples/px to stop at
-g --gpu <integer> gpu to use (0 = primary, 1 = secondary, etc...)
--cam-pos-x <float> manually specify camera position X
--cam-pos-y <float> manually specify camera position Y
--cam-pos-z <float> manually specify camera position Z
--cam-target-x <float> manually specify camera target position X
--cam-target-y <float> manually specify camera target position Y
--cam-target-z <float> manually specify camera target position Z
--cam-up-x <float> manually specify camera up vector X
--cam-up-y <float> manually specify camera up vector Y
--cam-up-z <float> manually specify camera up vector Z
--cam-fov <float> manually specify camera field of view in degrees
--cam-aperture <float> manually specify camera lens aperture radius
-m --mesh-node <string> the name of the meshnode to render
-r --relink-meshnode <string> a new filename of a new OBJ file to relink the rendered meshnode (specified with -m above) with, keeping materials intact by material name
EXAMPLES
--------
Example: render a named mesh node in a OCS project file with camera controls:
octane -e -m meshnodename -s 4096 --output-png file0001.png --cam-pos-x 0.0 --cam-pos-y 0.0 --cam-pos-z 10.0 --cam-target-x 0.0 --cam-target-y 0.0 --cam-target-z 0.0 --cam-up-x 0.0 --cam-up-y 1.0 --cam-up-z 0.0 --cam-fov 90.0 --cam-aperture 1.0 projectfile.ocs
Example: render a named mesh node, relinking it with a new OBJ file (preserving materials by name):
octane -e -m meshnodename -r newobject.obj -s 4096 --output-png file0001.png projectfile.ocs
offcourse you can also add camera controls to the 2nd ;)