About Python
Instead of using wrangle nodes you can also place python nodes to take advante of the huge mass of python implementations of algorithms out there.Basic knowledge of Python and understanding of object-oriented programming is recommended as the whole Python component is completely concentrated on how Python works in Houdini and understanding the Houdini Object Model.
But never forget this: Quite often the same task implemented in VEX leads to a much better performance than the corresponding implementation in python. The reason is that VEX is compiled on the fly in such a way as to exploit all available possibilities for parallelization.
On the other hand, Python offers a wealth of numerical libraries. This means that many tasks have to be done in Python, but the standard choice should be VEX. Remember to avoid python loops wherever possible. Many recurrent tasks can be performed without loops in python and are usually much faster.
Scripting with Python in Houdini
- Covering Basic HOM Access Through the Shell Tool
- Creating a Custom Python Shelf Tool
- Accessing External Python Modules
- Configuring a Python Environment
- Using Python in Expressions
- Introducing hou.Node Basic Information
- Accessing hou.Node’s Parameters, Inputs and Outputs
- Controlling Parameters with hou.Parm
- Covering hou.ObjNode
- Introducing hou.Geometry Points, Vertices and Primitives
- Accessing Attributes and Authoring Geometry
- Implementing Keyframe Animation
- Using Kwargs to Access Houdini Digital Asset Data
- Authoring Python Modules in Houdini Digital Assets
- Creating Custom Python Sops
- Solving Production Issues with Fancy Python Expressions
- Using Custom Python Sops
- Introducing the hou.Session Module