Grasshopper

algorithmic modeling for Rhino

Hello!

 

I have a simple list question that hopefully someone w/ more experience can easily solve.

Say I have a list of 4 lines in a single grasshopper component.  How can I access each line without having to tediously use the "List Item" component for each index? As shown in image1

I will have to do this for several similar 4 line components and there has to be a more efficient way to do this as opposed to doing somthing like this (image2):

 

Is there a way I can access each item from a single component that decomposes the list? perhaps a simple vb.net component?  Thanks for the help!

 

image1

 

 

 

image2

 

 

 

Views: 2230

Replies to This Discussion

You don't need to repeat components over and over provided you have the correct data structure. You can repeat the same tasks for multiple objects. Without looking at you definition as a whole I cannot be more specific at the moment maybe someone else will chime in here, otherwise I can look at it in the morning at work.

Hi Danny,

 

Thanks for your reply.  Basically without getting too much into distracting project details, I will be using be executing different functions to each line.

 

for example:

i was suggesting a simple vb.net component bc perhaps I can take the list as an array and access and output each index separately. (I am not too good with vb.net syntax)

 

Does anyone know how to do this?

because you need to be so specfic with each line what i was refering to will be no more helpful as what you have already. but in these situations i have found the tree explode to be quite useful with a graft of the input. just right click to get the output manager for more outputs

I guess tahts what I was looking for, that works - thanks a lot Danny!

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