Python Resources

Updated on Aug 4 2024

Python In Houdini Examples

Deborah R. Fowler



Python in Houdini Examples - Python Expressions

Updated May 9  2013
Updated March 30  2019


Phyllotactic Pattern - described here and seen executed in mel etc. is given here as a "python in Houdini" (see other methods):
NOTE: for global variables such as hscript's $F you may use:
Works with single or double quotes. This was noted on my page regarding Python In Houdini.
However I traced it thru the documentation thread via

http://www.sidefx.com/docs/houdini/hom/expressions.html

This states that "The hou.lvar()  function cannot access Hscript global variables (use  hou.expandString() )."

Going there we get

http://www.sidefx.com/docs/houdini/hom/hou/expandString.html

And then clicking on the bottom link takes us to the link below where halfway down the page is hou.frame()

http://www.sidefx.com/docs/houdini/hom/hou/expandStringAtFrame.html