Versions Compared


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


Hide content


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>hip
> Redshift_setGPU -s 011>011
> render /out/myRedshiftROP

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


Code Block
<preference name="AllCudaDevicesAllComputeDevices" type="string" value="0:Quadro K5000,1:Quadro 6000," />