algorithmic modeling for Rhino
You can use List Item, to select the first just use List Item with 0 as setting, and for the last item, use a combination of List length component and List Item, input List Length - 1 in the setting of List Item, and this should do the trick.
If you enable Wrapping on the input (w=true), you can also use -1 as the index to find the last component.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
I usually use list item 0 for both. To get the first, just use list item, with index 0. To get the last, copy the same component, but this time 'reverse' the input to 'L'
thanks Luis I also do the same, but can't read propertly a definition that I made using that component, the script is broken because i used that.
Have you never used that called first -end list item ?
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by