Jump to content
rygo6

Delete faces with primitive value greater than X?

Recommended Posts

I have an object with a bunch of primitive values on it of varying amounts, 0 to 1. I want to delete all the faces which have a value greater than .5

How do I do that?

Share this post


Link to post
Share on other sites
1 hour ago, Yon said:

if(@attribute > .5){
removeprim(0,@primnum,1);
}

 

Thank you I got that working with attribute wrangle

 

Out of curiosity how would you make this work with the delete node?

Share this post


Link to post
Share on other sites
On 11/1/2017 at 3:59 AM, Sepu said:

in the delete node ...

Delete by expression


@attribute>.5

 

note that in a delete node right now, you should not use any spaces before or after the ">" (or <, ==, !=, etc.) in a wrangle its fine to do that,
in a delete node you can also not create much complex conditions than the example Sepu gave.

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

×