Jump to content

Points Attribute transfer Dilemma - point id not keeping it's value


Recommended Posts

Hello Guys.

I got stuck here in a middle of an project and i can't find a solution.

My problem is : I have a grid  of points , and an animated point running over the surface of the grid.  My "running" point have an attribute that is transferd ( via attrib transfer SOP inside anSolver)  to the grid points by an proximity radius.

then I use the transfered attribute to isolate only the grid points that are tuched by the "running"point. But the @ptnum of the remaining points is changing. And i need the @ptnum to  grow in the order detection ( @ptnum 1, 2, 3, 4, 5 etc)

why is that happening

 

to understand better I've attached the scene file

 

ptnum_chaos.hip

Edited by chishbak
Link to comment
Share on other sites

My problem is that my points  after delete, are changin their point id  instead of being fix. If you show point numbers in viewport and then grab the timeslider, you can see for example der point 4  change it's position to point 5.  But i guess I solve it with an custom attribute id. ( i@id = @ptnum in an wrangle right after solver)

Link to comment
Share on other sites

you already have an id attrib. you are creating it just before the solver
don't care about the ptnum Houdini is displaying in the viewport. It does change of course that is why you have the id attrib.
Just like with a particle sim where particles die and new ones get born they constantly change their ptnum in viewport but id (in spreadhsheet) stays the same

and no, setting id to ptnum after the solver wont help at all

Edited by 3dome
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.

Guest
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...