[Sidefx-houdini-list] points of a prim

Jim Price shadeops at gmail.com
Wed Aug 13 17:12:59 EDT 2008


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


On Wed, Aug 13, 2008 at 4:54 PM, Gene Dreitser <keyframe at rogers.com> wrote:

> Heya everyone,
>
> My brain is stuck.  I think.
>
> I would like to determine which points comprise a particular prim.
>
> Imagine a default poly grid, 10x10 -- I need to know what points comprise
> prim #37.  The hou.prim().vectices() method seems to be returning 0..2 for
> tris, and 0..3 for quads.  can't find a handy hscript method either.
>
> Anyone?  Anyone?  Bueller?
>
> G
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>



More information about the Sidefx-houdini-list mailing list