foxtrotzulu Posted September 25, 2021 Share Posted September 25, 2021 Hi all, after running a guided ocean sim, I have meshed the particles using particle fluid surface, and the resulting surfaces have a “bottom” layer which I would like to delete. Using connectivity SOP and setting the type to Primitive exposes attribute called class, which gives me integer class. Then I used group expression and gave the group name called “kill”. in the Vexpression, I used @class == 10 10 being the class of primitives that comprise the bottom layer that I am trying to delete. Then I put down a blast, and by putting in the group “kill” that I made in the group expression, I am able to delete the bottom layer. so far so good. Only problem is, the class numbers change depending on the frame. So, while class 10 might be the bottom layer that I am trying to delete on frame 1, at frame 2, the class name has changed to something like 12, and my group expression and blast no longer work. How can I use this method when the class changes every frame? If there is a better method to procedurally delete the bottom layer of mesh throughout the frame range (say, 1 to 168), I would love to learn about it. Thank you Quote Link to comment Share on other sites More sharing options...
Ultraman Posted September 26, 2021 Share Posted September 26, 2021 7 hours ago, foxtrotzulu said: Hi all, after running a guided ocean sim, I have meshed the particles using particle fluid surface, and the resulting surfaces have a “bottom” layer which I would like to delete. Using connectivity SOP and setting the type to Primitive exposes attribute called class, which gives me integer class. Then I used group expression and gave the group name called “kill”. in the Vexpression, I used @class == 10 10 being the class of primitives that comprise the bottom layer that I am trying to delete. Then I put down a blast, and by putting in the group “kill” that I made in the group expression, I am able to delete the bottom layer. so far so good. Only problem is, the class numbers change depending on the frame. So, while class 10 might be the bottom layer that I am trying to delete on frame 1, at frame 2, the class name has changed to something like 12, and my group expression and blast no longer work. How can I use this method when the class changes every frame? If there is a better method to procedurally delete the bottom layer of mesh throughout the frame range (say, 1 to 168), I would love to learn about it. Thank you Can Share HIP File ? Quote Link to comment Share on other sites More sharing options...
foxtrotzulu Posted September 26, 2021 Author Share Posted September 26, 2021 @Ultraman I'm unable to share the .hip file... Quote Link to comment Share on other sites More sharing options...
Dweeble Posted September 27, 2021 Share Posted September 27, 2021 Compare the bounds of the top and bottom layer and blast whichever is lower. If you haven't isolated the two surface layers, judging by the image you can do so by measuring their areas compared to splashes and the like. 1 Quote Link to comment Share on other sites More sharing options...
foxtrotzulu Posted September 28, 2021 Author Share Posted September 28, 2021 Solved the issue by trying different Layer Size and Guiding Surface Thickness values in the wavetank to avoid getting the bottom layer. Some bits still exist, but I can delete them using delete node with bounding box. Thanks for your great suggestions! 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.