| 
    HDK
    
   | 
 
Example Files:
In $HFS/toolkit/samples, you should find a SOHO sub-directory. This contains
The .py Python files need to be installed in the HOUDINI_PATH, in the soho subdirectory. The OTL file can be loaded on the command line (or from the File menu after Houdini has started). For example, on Linux:
After starting Houdini with the OTL, there should be a new output driver "Hello SOHO".
To create your own output driver, choose "New Operator Type" from the File menu in Houdini.
soho_program soho_outputmode and set it's default value to 2.This example is about as basic as you can get.
If you create a Hello SOHO operator in Houdini, make sure the soho_program parameter is set to Hello1.py, you should be able to hit the render button on the output driver and see "Hello world" printed out.
If you get an error on the output driver saying that there was "no SOHO program" found this means that the output driver was unable to find the Hello1.py program.
soho sub-directory in the HOUDINI_PATH. You can do this from within a Houdini textport (or from hbatch) running:Hello2.py is a very minor extension to Hello1.py. Instead of using the Python print statement, we use HOM to call hou.ui.displayMessage()
Hello3.py shows how to build a SOHO scene and traverse the objects in the scene. The scene traversal will
There is a more complete factory example shipped with the Houdini. In $HFS/houdini/soho/, you should find OGL.py. This example uses the pygame and OpenGL Python modules to open a window and render lit object geometry.
This example performs object parameter evaluation and also shows how to access geometry. You can find more information on these functions in HDK_SOHO or by examining HDK_SOHO_API.