davidyannick Posted January 17, 2019 Share Posted January 17, 2019 (edited) I wrote these lines to create a group frm my selection Quote int pointNum=chi("Ppointnum"); setpointattrib(geoself(),"Cd",pointNum,{0,1,0},"set"); int neighs[]=neighbours(0,pointNum); for(int i=0;i<len(neighs);i++){ setpointattrib(geoself(),"Cd",neighs,{1,0,0},"set"); setpointgroup(0,"truc",neighs,1,"set"); } BBut the selection is ok but no group is created ?? I add a group sop and the group "truc" is not listed ? Can you help me please ? Thx untitled.hipnc Edited January 17, 2019 by davidyannick Quote Link to comment Share on other sites More sharing options...
anim Posted January 17, 2019 Share Posted January 17, 2019 (edited) your pasted code snipped is broken (missing [] when calling member from neighs array ), but the code in the screenshot is ok, and in the viewport it looks like it works so I assume your problem is that your Group SOP is set to Primitives instead of Points and that's why you don't see the group in the menu same in the viewport, you probably have Prim selection instead of point selection also you can MMB on the node to see if your group is created and how many points it has Edited January 17, 2019 by anim Quote Link to comment Share on other sites More sharing options...
kiryha Posted January 17, 2019 Share Posted January 17, 2019 The group "truc" exists. MMB click on a wrangle node to see node details. Or check the Geometry Spreadsheet. Quote Link to comment Share on other sites More sharing options...
davidyannick Posted January 17, 2019 Author Share Posted January 17, 2019 (edited) ok thanks for your help you're both right Edited January 17, 2019 by davidyannick add 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.