Grasshopper

algorithmic modeling for Rhino

hello,

Almost in every case in which i need to take a list and extract all the items in it,

i find myself taking a list and manually extracting it's items by taking the "list item" feature and duplicating it, each time setting a different index number one by one.

since the index number is actually some sort of list, and since this is something that happens all the time, did anyone think of a way of extracting the items in a quicker and more elegant way?

Views: 5181

Replies to This Discussion

Zoom in!

happy new year

okay i found the soludion in another discussion of zooming into the item box and clicking on the + for another input... 

Using 'List Item' may not be necessary as often as you think.  Being able to manipulate lists is one of the key skills in GH.  In this example from a recent thread, instead of breaking the items out of the list and setting their radius and height with separate 'Cir' and 'Move'/'Ext' components for each one, sliders for radius and Z position are connected and matched so 'List Item' isn't needed:

Cheers!

You can also create a series 0,1,2,3...n and use this as the input i of List Item

thank you all!! i didn't know i could do that :)

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service