Grasshopper

algorithmic modeling for Rhino

Hi,

I´m sorry for this rather basic question but suddently I still cannot get it right.

I have a data tree with 142 branches and I would like to sort my Data Tree according to the length of the branches. It supposed to be quite simple but sorting by List length doesn´t give my strings as the output. I tried several options in flattening or grafting my DataTree but I still cannot get it right. Do I have to use the path mapper for this operation?

Views: 1867

Replies to This Discussion

Hi Dennis,

Try not to input your whole tree into the "K" plug of "Sort" component. Use the index of tree branch paths instead:

Attachments:

Thank you very much. Indeed that´s the solution!

Saw your question on the weekend but did not have access to GH so could not test idea but it seems to work. Try this, its just a progression on djordje script but using minimum components.

Hope it helps

Matt

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