Jump to content
SquirkyTurtle

How to keep track of points with changing point number (add)

Recommended Posts

Hello people of Houdini!


I am having a problem and I am struggling to find a solution. I simulated some points, they start of as a small number and accumulate over time. Now, I want each point to have a unique point number. Normally, when dealing with a changing point number, I create an ID attribute at frame one. But so far, I have only ever encountered scenarios where the points got less and less over time, not more and more. I am not sure how to approach this and it is driving me crazy. I don't really want to resimulate my points and turn off the spawning over time, but I need to keep track of which point is which. 

If someone has an answer to this issue, I am super grateful for any input. 

Thank you so much in advance!

Share this post


Link to post
Share on other sites

Could you reverse your sim and write the IDs from the last frame all the way through to the first frame. Save that to disk and reverse it again when you read it back in. That should give you consistent IDs.

-b

Share this post


Link to post
Share on other sites

check out this video... around min 14.

cheers

Share this post


Link to post
Share on other sites
1 hour ago, davpe said:

check out this video... around min 14.

cheers

Hi, thank you! :) But I think you forgot to attach the link :D

Share this post


Link to post
Share on other sites
1 hour ago, bonsak said:

Could you reverse your sim and write the IDs from the last frame all the way through to the first frame. Save that to disk and reverse it again when you read it back in. That should give you consistent IDs.

-b

Yes, I could. It is a bit painful but defiantly an idea :) thank you!

Share this post


Link to post
Share on other sites

heh, sorry :)

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×