karen Posted June 18, 2023 Share Posted June 18, 2023 I've checked group related vex functions, and found inpointgroup the closest to what I'm looking for but It's asking for a specific name of a group. I may have a lot of groups, all I need is: for all the points that are "groupless" to be added to a new group called newgroup. Quote Link to comment Share on other sites More sharing options...
Atom Posted June 18, 2023 Share Posted June 18, 2023 (edited) What about something like this running in a point wrangle. Fetch all the group names from the intrinsic attribute where they are stored. Initially set all points to be in the "newgroup" group, then loop over the group names. If the point is in the fetched group, remove it from "newgroup." i@group_newgroup = 1; string groups[] = detailintrinsic(0, "pointgroups"); foreach (int i; string group; groups) { int check = inpointgroup(0,group,@ptnum); if(check==1){i@group_newgroup = 0;} } Edited June 18, 2023 by Atom 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.