[Sidefx-houdini-list] points of a prim

Gene Dreitser keyframe at rogers.com
Wed Aug 13 17:51:18 EDT 2008


Heh, it's funny... i'm actually trying for the exact opposite!

I'm trying to figure out the 'edges' which pairs of prims share for some folding magic.
Good times.  Too bad the paint fumes are making me even more dizzy then usual.

Thank you both!

G



----- Original Message ----
From: Andrew D Lyons <tstexture at gmail.com>
To: sidefx-houdini-list at sidefx.com
Sent: Wednesday, August 13, 2008 5:35:12 PM
Subject: Re: [Sidefx-houdini-list] points of a prim

Cool - was going to need this soon...

One thought though - because points can have multiple verts, you might
want to put them all in a "set" data object avoid duplicate point
number entries. ( http://docs.python.org/lib/types-set.html )

primNum = 3
sop = hou.node("/obj/geo1/sphere1")
verts = sop.geometry().prims()[primNum].vertices()
pts = set()
for vert in verts:
  pts.add(vert.point())


More information about the Sidefx-houdini-list mailing list