Deborah R. Fowler
Python
in Houdini Examples
Updated May 9 2013
Updated March 31 2019
The previous section (Python in Houdini) outlined
the where (getting the code into Houdini) and the how (hou
syntax). This page provides some examples. For the beginner it
is advised to look at the python SOP Phyllotactic
pattern example first.
Python in a Font node
Phyllotactic Pattern - described here and seen executed in mel etc. is given here as a "python in Houdini" example using three methods:
- python expressions in a copy node
- python SOP Similar to the point wrangle node, the points are created for the phyllotactic pattern in code
- python script
Spiral Staircase - described here and seen executed in mel, is given here as a python in Houdini example.
- node based houdini version (hipnc file) - one with a few more details
- python scripted version (hipnc file or python script)
Mandelbrot in python
I have implemented this in
- C++/openGL and
- pointwrangle
and
- now python. There is also a comparison of the point wrangle code to the python code on this page as well
Mocap data parsing -
- newer version using the
python SOP
- ARCHIVED (easier to simply use the SOP as described above) using the python hda