Jump to content

point iterations in python


Recommended Posts

I'm beginning to get into python with houdini and i was wondering if there was an easy way to: for each point, iterate over the rest of the points (like 'for point in geo.points()') for, lets say, a comparison. i dont think 2 nested 'for point in geo.points()' works as it froze houdini

any advice?

Link to comment
Share on other sites

Loops within loops of points are fine. Not sure why it would freeze Houdini unless you were say attempting to loop over an extremely large set of points and it just took forever. What exactly were you doing inside your loops?

Link to comment
Share on other sites

well essentially i want to recreate something along the lines of a point cloud lookup to return the number of points within a radius of each point but i guess that wont be efficient unless i use inlinecpp like from your .py here?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...