rygo6 Posted November 1, 2017 Share Posted November 1, 2017 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? Quote Link to comment Share on other sites More sharing options...
Yon Posted November 1, 2017 Share Posted November 1, 2017 if(@attribute > .5){ removeprim(0,@primnum,1); } Quote Link to comment Share on other sites More sharing options...
rygo6 Posted November 1, 2017 Author Share Posted November 1, 2017 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? Quote Link to comment Share on other sites More sharing options...
Sepu Posted November 1, 2017 Share Posted November 1, 2017 in the delete node ... Delete by expression @attribute>.5 Quote Link to comment Share on other sites More sharing options...
acey195 Posted November 3, 2017 Share Posted November 3, 2017 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. 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.