Grasshopper

algorithmic modeling for Rhino

reversing even rows within a list of points

Hi. I have a list of XZ points and I would like to reverse just the even rows within that list (say instead of 8 to 15 from left to right, from right to left. Same thing for 24 to 31, 40 to 47, etc.). Ideas?

THX

Views: 782

Attachments:

Replies to This Discussion

Hi Eduardo,

Use Partition list along with "reverse" and "flatten" at it's "C" output plug:

Please attach your files in the future.

Nop, that doesn´t work. I don´t want to reverse the order of every point for all the rows, just the ones within the even ones, meaning reversing the order of the points within the second row, the forth one, the sixth on, and so on...

I can choose the even rows from the original list and the odd numbers ones for the second one though, or the other way around

THX

cool!! thanks

Hey Danny- have you checked out Tree Sloth yet?  Divide branches switches them out quickly...you can also add as many outputs as you like, and drive it with an index pattern.

I'll check it out

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service