nicoladanese Posted March 13, 2019 Share Posted March 13, 2019 hey! I have thousands of primitives and I need to filter them and delete the ones that has a bounding box volume bigger than a certain value, I tried the measure sop but no luck, at the moment what I'm doing is a very tedious procedure of playblasting one for each frame based on their name and review the playblast to spot the bigger ones, but I know there must be something smarter... Quote Link to comment Share on other sites More sharing options...
kiryha Posted March 13, 2019 Share Posted March 13, 2019 (edited) // Delete all prims with area bigger than a threshold if(primattrib(0, "area", @primnum, 0) >= chf('Threshold')){ removeprim(0, @primnum, 1);} This primitive wrangle will delete all primitives which have an area bigger than a certain number. Do you need to use BBOX volume instead of the area or this will work fine? deletePrimBySize_001.hiplc Edited March 13, 2019 by kiryha Quote Link to comment Share on other sites More sharing options...
vtrvtr Posted March 13, 2019 Share Posted March 13, 2019 If you need to delete them based on the biggest size in the whole timeline you'll need to use a Solver of some kind to get the biggest possible bounding box. See below. blast_over_timeline_odf.hipnc Quote Link to comment Share on other sites More sharing options...
nicoladanese Posted March 14, 2019 Author Share Posted March 14, 2019 hey! thanks guys! 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.