[Sidefx-houdini-list] First question to the list

Edward Lam edward at sidefx.com
Tue Mar 9 09:22:01 EST 2010


Alex Czetwertynski wrote:
> I'm interested in using Houdini to create shapes of this sort
> http://xahlee.org/SpecialPlaneCurves_dir/specialPlaneCurves.html
> 
> What would be the way to go about creating, say, a Lituus shape?  It  
> seems to me that the type of equation that is being used contains  
> symbols that I have never seen in Houdini, but I could be wrong.

It's just a simple matter of adjusting the equation for the Spiral 
example from the Expression Cookbook in the documentation:
   http://www.sidefx.com/docs/houdini10.0/ref/expression_cookbook

Regards,
-Edward

Drop this script in a textport in Houdini - watch out for line wrapping 
from the email:
---------------------------------------------------------
# Automatically generated script: Tuesday March 09, 09:16
\set noalias = 1
set saved_path = `execute("oppwf")`
opcf /obj

# Node geo1 (Object/geo)
opadd geo geo1
opcf geo1

oprm file1

# Node line1 (Sop/line)
opadd line line1
oplocate -x -1.22941 -y 1.43529 line1
opparm line1 dir ( 1 0 0 ) points ( 3000 )

# Node point1 (Sop/point)
opadd point point1
oplocate -x -1.22941 -y 0.423529 point1
chblockbegin
chkey -t 0 -v 0 -m 0 -a 0 -A 0 -T a  -F 'cos($PT) * (1.0/sqrt($PT+1))' 
point1/tx
chkey -t 0 -v 0 -m 0 -a 0 -A 0 -T a  -F 'sin($PT) * (1.0/sqrt($PT+1))' 
point1/tz
chblockend

# Node xform1 (Sop/xform)
opadd xform xform1
oplocate -x -1.22941 -y -0.564706 xform1
opparm xform1 scale ( 10 )
opset -d on xform1

opwire -n line1 -0 point1
opwire -n point1 -0 xform1

opcf ..
opcf $saved_path
---------------------------------------------------------





More information about the Sidefx-houdini-list mailing list