Freeze point number of the scatter sop

   7963   5   0
User Avatar
Member
250 posts
Joined: Feb. 2013
Offline
Hi everyone,

Is there a way to freeze the point number of points from a scatter sop ? Which means that when I delete some points, the point number of each point always remain the same…

I know that it's a simple question, the answer may be simple too…

Thanks !
https://vimeo.com/obreadytom [vimeo.com]
User Avatar
Member
250 posts
Joined: Feb. 2013
Offline
Nope, doesn't work anymore this morning Strange.

Is there an other solution ?

EDIT : oh okay so what I do is that I convert my point into particles, which have unique id, so I use these id. I don't know if it's the best solution, but it works.
https://vimeo.com/obreadytom [vimeo.com]
User Avatar
Member
5 posts
Joined: June 2011
Offline
Actually you dont have to convert them to particles. Right after the scatter sop put an attribute create node, use $PT for value, give it a unique name. Now even if you delete some points using expressions or whatever, the attribute you create before delete operation wont change and you can use that attribute instead of $PT
User Avatar
Member
29 posts
Joined: Dec. 2016
Offline
Hey guys, I hate to dig up an old post, but I'm having similar trouble. I'm new to both Houdini and coding, so I still stumble trying to wrap my head around expressions and vex code.
The project I'm working on involves growth propagation of points (Basically this tutorial https://vimeo.com/149939158 [vimeo.com] )
and I got through that just fine. But, now I'm trying to modify it a bit using a “Find Shortest Path” and a couple groups to assign start and end points. It would require the point numbers to freeze to the point as it's created. Right now, the point numbers seem to be randomly assigned as the points grow in number and the resulting geometry jumps around over the course of the growth.

masquerade
Actually you dont have to convert them to particles. Right after the scatter sop put an attribute create node, use $PT for value, give it a unique name. Now even if you delete some points using expressions or whatever, the attribute you create before delete operation wont change and you can use that attribute instead of $PT

This seems like the way to go, I just don't know how to reference/recall that attribute to assign those numbers to the points after the delete node. Any help would be much appreciated.
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
@ptnum is assigned to points , if you delete any points @ptnum will change. What I do is a assign a unique id to each point. if using particles thats often @id . I have no idea about the tutorial but post up a scene file showing the issue

R
Gone fishing
  • Quick Links