Jump to content
nicoladanese

delete group of primitives based on bound box volume

Recommended Posts

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...

Share this post


Link to post
Share on other sites
// 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 by kiryha

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×