Grasshopper

algorithmic modeling for Rhino

Hi all, I have a problem with a tree structure, I'm trying find a certain number of paths in a tree with a lot of paths, I know the paths indices,and I want to preserve the order of the indices.

for example, this case the indices are 3 and 1, it's crucial for me that the order of the retrieved paths will be tha same (I want as output first the {3} followed by the {1}, but no matter the method I use, the tree always re-sort the branches in growing order, how can I resort the branches of a tree to match the order of the indices? I don't care about the name of the branches, I only care about the order of the content of each branch.

tree%20sorting%20example.gh

Views: 634

Replies to This Discussion

Right click on [Tree Branch] and disable Maintain Paths :)

such a fast response and such an easy solution, thanks a lot!

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