The plugin adds to Houdini some hscript commands that can be used from the textport window or from scripts. There are commands to add proxy nodes, add and remove camera and objects spare parameters to the selected nodes, get and set the GPUs enable state, open the IPR window or open the options panel.
The Redshift_setGPU command, that makes possible configure the GPUs enable state in the system, only can be used before the first render. If used after render any image or after open the IPR window, the changes will not take effect.
The commands to control the IPR are:
- Redshift_openIPR to open the IPR window or full reload the scene
- Redshift_IPRUpdateState to enable/disable the IPR scene update (the rendering will continue, but the changes in the scene will not be updated in the IPR)
- Redshift_updateIPR to update the scene, useful after disable the IPR update
- Redshift_snapshotIPR to take a snapshot of the current IPR image in MPlay
Rendering from the command line
The plugin is compatible with all the Houdini non-GUI command line tools. Using these tools it is easy support external render controllers, like Deadline, or write custom batch rendering scripts. The Redshift commands are also available for these tools to make possible configure settings like the GPUs to be used in the render session.
This is an example of how to render a scene from the command line using the hython tool. The Redshift_setGPU hscript command is used to disable the first GPU in a four GPU system before render the scene.
hython E:\Projects\Redshift\RedshiftTest01.hip
hou.hscript("Redshift_setGPU -s 0111")
rnode = hou.node("/out/Redshift_ROP1")
rnode.render()