Vorkosigan Posted November 21, 2020 Share Posted November 21, 2020 Hello there, I simulated a bunch of geometries, street rubbles, cobble stones etc and now that I have my final geo, I would like to delete a bunch of cobble stones, so i need to be able to select them by polycount, that would be really dope. What would be the vex way to do that ? Thank you ! Tanguy Quote Link to comment Share on other sites More sharing options...
animatrix Posted November 21, 2020 Share Posted November 21, 2020 Hi, If you create a primitive connectivity attribute using the Connectivity SOP, you can do something like this using a Primitive Wrangle: if ( findattribvalcount ( 0, "primitive", "class", i@class ) < chi("polycount") ) removeprim ( 0, @primnum, 1 ); Quote Link to comment Share on other sites More sharing options...
Vorkosigan Posted November 21, 2020 Author Share Posted November 21, 2020 Thank you Animatrix, I will give it a shot To your class too ! 1 Quote Link to comment Share on other sites More sharing options...
Vorkosigan Posted November 21, 2020 Author Share Posted November 21, 2020 Do I put the wrangler before or after the SOP ? is "polycount" where I enter my value ? Thank you, Tanguy Quote Link to comment Share on other sites More sharing options...
animatrix Posted November 21, 2020 Share Posted November 21, 2020 After the Connectivity SOP and polycount is where you enter the value, you can do > < == !=, etc. 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.