Lorenz Attractor OTL - a Python OP Quick Start by Georg Dümlein



Abstract

This walk through explains the usage of the new python operator in Houdini 9. We will create a new SOP that modifies incoming geometry points to form a Lorenz Attractor.

Preparation

After starting Houdini 9 save the file to a directory of your choice.
Now create a geometry node with [TAB]-ge..



Press ENTER three times to select the node, lay it down and enter it.
*** Note: maybe the new Interface support another way to do this, but for now it serves just fine.


Delete the fileSOP and create a lineSOP and connect it to a resampleSOP. [TAB] - line ENTER ENTER lays down the line SOP. Shift-RMB on its output and type resa ENTER ENTER to add the resampleSOP. Your network should look like this:


Resample the line to about 10000 points: disable the "Maximum Segment Length" option and switch to "Maximum Segments":


This is the base for our Lorenz Attractor. Save your file.

The Python Operator

To start we need to create a new Python Operator: File -> New Operator Type ...
Select Python Operator. I named my OP rdg-lorenz_attractor, labeled it as "RDG Lorenz Attraktor" and saved into a new OTL:





The window to edit the operator type properties appears. Create four float values and one float vector 3.
Name them: val_h, val_a, val_b, val_c and startpos. I labeled them as h, a, b, c and Start Position.



Page 1 | Page 2
 

 
 
  Copyright © 2005-2007. All Rights Reserved