Grasshopper

algorithmic modeling for Rhino

I am trying to figure out how to rearrange specific items in a tree in this example.


I would like to swap b,c to be c,b and 2,3 to be 3,2. Leaving items (a and d) (1 and 4) in each branch in their place.


What would be the ideal way of doing this? I am still not 100% familiar with path mapper, or if its even possible to do this using path mapper. And wanted to try an solve this in an elegant way without going the C# script route.

Views: 523

Attachments:

Replies to This Discussion

Essentially looking if there is elegant way to solve this without the c#. This is desired output.

if all your lists have 4 items, a list item component with an index list {0,2,1,3} supplied should do it:

if you want it to work for lists of any length you'll have to get fancier.

Andrew this is exactly what I was looking for, thank you!

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