Juzwa Posted February 16, 2015 Share Posted February 16, 2015 (edited) Hi, I've created primitive attributes on most of the pieces of my model. So when it comes to fracturing I can split the geo very fast by attribute. I think it needs to be done in delete SOP, primitives entity, expression or pattern, maybe a foreach. But I'm not sure what is the expression that I need to do that. I tried to set each attribute some value and then use this: @myAttribute > 0 But It does not work and I know why. I think I need sth like: if (currentAttribute == @myAttribute) Edited February 16, 2015 by Juzwa Quote Link to comment Share on other sites More sharing options...
Mumble Posted February 16, 2015 Share Posted February 16, 2015 If you use a blast node: @myAttribute > 0 without the spaces "@myAttribute>0" should work. Or if your attribute has also been declared as a variable "$MYATTRIBUTE>0.5" should work in a delete node in the filter expression parameter. In my experience, using the blast node has much faster results. Quote Link to comment Share on other sites More sharing options...
Juzwa Posted February 16, 2015 Author Share Posted February 16, 2015 (edited) Thanks! Indeed no spaces in blast sop works well! This is a bit confusing to me... Edited February 16, 2015 by Juzwa Quote Link to comment Share on other sites More sharing options...
pbarua Posted February 16, 2015 Share Posted February 16, 2015 Reply to original topic (VEX - delete by attribute) VEX solution: drop down an attribwrangle then enter this code: if(@myAttribute > 0) removeprim(geoself(), @primnum, 1); // if you want to delete points owned by primitive itself or if(@myAttribute > 0) removeprim(geoself(), @primnum, 0); 1 Quote Link to comment Share on other sites More sharing options...
pbarua Posted February 16, 2015 Share Posted February 16, 2015 (edited) where geoself() is first input (geometry itself). You can use input number as well like 0, 1, 2 and3. Edited February 16, 2015 by Pradeep Barua 1 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.