galagast Posted March 18, 2016 Share Posted March 18, 2016 Is there an equivalent to the expression pointgrouplist in VEX? I want to create points based on the number of point groups, then center those to the corresponding group. My current setup involves an attributeCreate, which creates the "number of group" attribute. Then I pipe it in to an Attribute Wrangle, where I wrote code that parses through each group, get average center positions, then generate points. So far it works.. I was just curious if it's possible to write it all in one wrangle sop. point_per_group_center.rar Quote Link to comment Share on other sites More sharing options...
Skybar Posted March 18, 2016 Share Posted March 18, 2016 int npg = nuniqueval(1, "point", "class"); point_per_group_center_dv.hiplc Quote Link to comment Share on other sites More sharing options...
galagast Posted March 18, 2016 Author Share Posted March 18, 2016 Awesome! Exactly what I needed! Thank you David I never knew such a function existed, that will definitely be extremely useful on my future endeavors. 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.