yoo Posted November 3, 2020 Share Posted November 3, 2020 Hi, I am trying to apply pop wind force to only non-isolated points in flip sim. Basically I don't want to apply this force to droplets. My VEX expression is like this but it doesn't seem to be working. Am I missing something or doing completely wrong? Thanks. Quote Link to comment Share on other sites More sharing options...
DonRomano Posted November 3, 2020 Share Posted November 3, 2020 You should use pcfind(), nearpoints() works only on geometry I think. Just like this : int count = chi("count"); float radius = ch("radius"); int pts[] = pcfind(0, "P" , @P, radius, count); if(len(pts) < chi("threshold")) amp *= 0; Quote Link to comment Share on other sites More sharing options...
yoo Posted November 3, 2020 Author Share Posted November 3, 2020 Thank you so much for replying, although the result looks the same as nearpoints function. I ended up using sop solver and finding isolated points in there and output attribute then simply multiplying amplitude with this attribute in pop wind. This seems to be working. Thanks, Quote Link to comment Share on other sites More sharing options...
DonRomano Posted November 4, 2020 Share Posted November 4, 2020 You can also use a geometry wrangle and output an attribute, instead of using a sop solver which can be slower sometimes Quote Link to comment Share on other sites More sharing options...
scaduxx Posted September 25, 2021 Share Posted September 25, 2021 On 11/3/2020 at 10:36 PM, yoo said: Thank you so much for replying, although the result looks the same as nearpoints function. I ended up using sop solver and finding isolated points in there and output attribute then simply multiplying amplitude with this attribute in pop wind. This seems to be working. Thanks, could you share how you did it? 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.