Grasshopper

algorithmic modeling for Rhino

Changing tree items order, but not structure of branches

Guys, Hello...

I have two lists with the same number of branches and the same path structure.

The goal was to keep one as it is (LEFT ONE) to serve as a 'guideline', and possibly change the order from the second one (RIGHT ONE) in a way that the second one indexes, match the first one items. BUT maintain it's structure (and numbers of items/branch)

Any tips guys?

Thanks in advance!

Views: 1189

Replies to This Discussion

hello,

match in what way? for example branch 1;0 with the integers what are its matches from branch 0;0;1?

Hello ng5 Alex,

Sorry if I didn't explain well...

Let's put it in that way. for example:

RIGHT PANEL(guideline)               LEFT PANEL(to be reordered)

branch{0;0} (can be simplified)    branch{0;0;0} (can be simplified)

item0=607                                 item0=(result of item of index 607 in this list)

Many thanks!

Hi

Do you want to reorder the right list, for example by sorting it, and let the left list be reordered the same way? In that case you can just use the Sort List node. You plug the right list into K and the left into A. That way both list will be reordered the same way, providing all the corresponding lists are the same lengths.

Still quite confused as to what you want to achieve, so I guessed.

Attachments:

Hello Guys,

I was reading my reply to ng5 Alex...

Actually, I wrote RIGHT and LEFT changed. So sorry.

But Gediminas Kirdeikis, thanks so much, this was my goal! it worked!

So sorry for the mistake guys, thanks to you all!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service