[Sidefx-houdini-list] [HOM] Particle type definition

Olex P hoknamahn at gmail.com
Mon Jan 28 16:48:12 EST 2008

When I've tried to change the number of inputs to zero Houdini just crashed.
And did it again and again. That's why I've asked. H9.1.117 Linux 32 bit.
But it works fine for pretty old Windows build.
You can merge too loops easily because createPoint() returns a reference to
new point. So your code might be like this:

geo = hou.pwd().geometry()
for point in range(100):
    pt = hou.Geometry.createPoint(geo)
    pt.setPosition(hou.Vector3(random.random(), random.random(),

Now the only one question you have is how to "register" those points as a
particle system?


On Jan 28, 2008 6:22 PM, Andras Ikladi <andras.ikladi at gmail.com> wrote:

> I just created a normal Python SOP type, set the inputs to zero and that
> was
> it.
> A simple example is might be:
> geo = hou.pwd().geometry()
> for point in range(0, parser.getNumParticles()):
>       hou.Geometry.createPoint(geo)
> for point in geo.points():
>        point.setPosition(...)
> Maybe you could merge the two loops (I'm gonna try next time):
> hou.Geometry.createPoint(geo).SetPosition(...)
> I'm using 9.1.116 on Linux64.
> cheers,
> Andras
> On Jan 28, 2008 3:30 PM, Olex P <hoknamahn at gmail.com> wrote:
> > Arhhhh sorry Andras :)) Now I see createPoint() method. It's pretty new.
> > Well we can generate points. How to create a Python SOP generator? I
> mean
> > this SOP shouldn't have any inputs. I've tried to find a way but all
> what
> > I've got was a series of crashes.
> >
> >
> _______________________________________________
> 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