Grasshopper

algorithmic modeling for Rhino

hi, 

I am trying to sort a list of 115 points into groups of 5: point 0-4, point 5-9 etc. It seems that this question was discussed several times in the forum, but I have tried the [path mapper], [graft tree], [replace branches] ... etc. but couldnt find the solution. 

i would appreciate any help, thank you!! 

Views: 2796

Attachments:

Replies to This Discussion

I'm pretty sure SortPoints is all you need.

You may need to flatten the list first.

Or, if you're trying to order each group with index 0 to 4 repetitively, you could do something like this:
Attachments:
hi gabe, thank you very much for the ghx-file, sortPoints didnt work, i tested it, but your definition works fine, thanks again!!
If you want to do this with the path mapper then you can find the example here right at the bottom of the image under Grouping. Or you could do it with replace branches example
thank you, the link is very helpful to understand the path mapper!!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service