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:
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:
Alternatively, you can write a script file like
And execute it using:
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.
Where <device_id> is the GPU device id you wish to render with.
To render scene located at c:\path\to\scene.c4d on GPU device 1 only use
Same scene rendered using GPU device 0 and 1:
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?