evanrudefx Posted November 9, 2018 Share Posted November 9, 2018 Hello! How can I delete by particle ID in a blast/delete sop? It seems like it would just be $ID == 2 to delete particle with ID 2, or something like that. Nothing I tried worked : ( thanks Quote Link to comment Share on other sites More sharing options...
3dome Posted November 9, 2018 Share Posted November 9, 2018 (edited) in the 'group' parameter of the blast SOP it would be @id=1 (or @id==1, both work). Don't specify the attrib type (i@, f@),.. Also important to set the group type so it knows where to look for that attrib! In the delete SOP I don't know because I rarely use it.. EDIT: in the delete sop same thing, set to points, delete by expression then use a proper expression (coding) syntax with the == operator. Again, don't specify the type Edited November 9, 2018 by 3dome checked out delete sop Quote Link to comment Share on other sites More sharing options...
evanrudefx Posted November 9, 2018 Author Share Posted November 9, 2018 I tried @id == 1 and it doesn't work. I set the group type to point. Why would "@" work? I thought that was used for vex. Quote Link to comment Share on other sites More sharing options...
3dome Posted November 9, 2018 Share Posted November 9, 2018 (edited) right, I forgot to mention: NO SPACES well, a while ago you had to use that $ sign for all that which was annoying because you had to create a variable mapping for all the attribs you created. (i think you still can do that) but as Houdini progressed, they opted to push everyone in the direction of VEX and allowed the @ outside of VEX for stuff like that Edited November 9, 2018 by 3dome 1 Quote Link to comment Share on other sites More sharing options...
evanrudefx Posted November 9, 2018 Author Share Posted November 9, 2018 2 minutes ago, 3dome said: right, I forgot to mention: NO SPACES It works now! How would I know to use @? I didn't find anywhere in the documentation that talks about using @ where hscript is used. 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.