christianl013 Posted April 26, 2023 Share Posted April 26, 2023 Hello, I have a bit of a noob question here but I have not been able to find the answer otherwise. How could I take a particle in a pop network work, plug in a network of curves into the pop net and have particles only follow velocites of the curve with the corresponding id attribute? I have a name attribute for each curve and I have the particle with a matching name attribute but I have not been able to get the particle to follow the curve with the matching ID. I thought that I could do it with a pc lookup but it seems to follow all of the curves in the lookup and not the curve with the matching ID. Is there a way to achieve this? any guidance on this would be much appreciated. Thank you. Best, Christian Quote Link to comment Share on other sites More sharing options...
animatrix Posted April 26, 2023 Share Posted April 26, 2023 Hi, I would use xyzdist to sample the curves: https://www.sidefx.com/docs/houdini/vex/functions/xyzdist.html You can use the overload that accepts a prim group where it be an ad-hoc group like so: "@name=curve05", which would limit the look up to that curve where the name attribute is curve05. You would use this syntax to form the right curve for each point. Quote Link to comment Share on other sites More sharing options...
Atom Posted April 26, 2023 Share Posted April 26, 2023 Here's an attempt at that setup using only groups. ap_some_particles_follow_some_curves.hiplc 2 Quote Link to comment Share on other sites More sharing options...
christianl013 Posted April 27, 2023 Author Share Posted April 27, 2023 Thank you guys for your great suggestions. I was able to use the method suggested by animatrix, it worked perfectly, I had to use this with a network of over 100 curves and xyzdist did the trick! Best, Christian Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.