Grasshopper

algorithmic modeling for Rhino

sort list - list item - item index - trying to find the n-th element

Hi, 

I am trying to sort a list with the list item - tool. i have two lists with curves (curve 0 to ca.500). from each list i want to loft the curve with the same index: curve 0 from list 1 with curve 0 from list 2 etc. i dont know how to generate it, if I set multiple items into the item index it doesnt work - it does cross-connections instead and lofts the curves from the same list. same problem if i just try using shortest list etc. it doesnt work.

maybe its not a complicated question?? 

but I would appreciate any help a lot!! thank you!! 

Views: 803

Attachments:

Replies to This Discussion

Chris
The following screenshot shows my problem better I think - 2 lists with curves and i am trying to loft each n-th element from one list with each n-th from the other list..... 

Chris solution will handle that. The Flip component is the Flip Matrix component on the Sets>Tree panel. For your case it takes one row of 25 items (columns) and turns it into 25 rows in one column.

Plug the output from your two Flatten Components into the two sets of curves above.

it works!! thank you very much!

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