Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Hide content
producthoudini

Prerequisites

To use the Houdini command-line tools, you need to open the Houdini 'Command Line Tools' application (available as a shortcut from the start menu) in Windows.

  In Linux, you'll need to source the Houdini environment as follows:

Code Block
source houdini_setup

Syntax / Example

For example, using 'hbatch', the most basic command-line render session without scripts to load a scene, set the enabled GPUs and render the Redshift ROP node, can be:

Code Block
> hbatch mySceneFile.hip> Redshift_setGPU -s 011> render /out/myRedshiftROP


Anchor
_GoBack
_GoBack
Please note that the -s 001 parameter after the Redshift_setGPU command means that, on a system with 3 GPUs, the first GPU should be disabled ('0') while the second and third GPU should be enabled ('1').

Alternatively, you can write a script file like

Code Block
mread mySceneFile.hip Redshift_setGPU -s 011 render /out/myRedshiftROP

And execute it using:

Code Block
> hbatch myScriptFile



Hide content
productcinema4d

Prerequisites

To render from the command-line you can use the CommandLine tool located in you Cinema 4D application installation folder. Alternatively the Cinema 4D application itself can also be used.

Syntax

Code Block
 Commandline.exe -redshift-gpu <device_id> -render c:\path\to\scene.c4d

Where <device_id> is the GPU device id you wish to render with.

Example

To render scene located at c:\path\to\scene.c4d on GPU device 1 only use

Code Block
Commandline.exe -redshift-gpu 1 -render c:\path\to\scene.c4d


Same scene rendered using GPU device 0 and 1:

Code Block
Commandline.exe -redshift-gpu 0 -redshift-gpu 1 -render c:\path\to\scene.c4d


The CommandLine tool supports multiple parameters for customizing rendering (frame ranges, image output options etc.) For more details please consult the "Cinema 4D and the Command Line" section of the Cinema 4D documentation.


How do I determine my GPU device ids?

...