Grasshopper

algorithmic modeling for Rhino

How ii's possible?

 

Best regards,

rG

Views: 17411

Attachments:

Replies to This Discussion

Your list of values are not held in the same memory as the list you are searching. Therefore they are not the same items. You can only find the index of an item if it is in the list. i.e. has come from the list and you are checking where it came from.

 

Another way of thinking about it is to have a room full of people and you need to find one person but instead of being able to simply say their name you need to provide a DNA sample before they own up, and the only way to get a DNA sample is to take blood from this person.

so...list index doesn't work!

Thanks for the DNA:)

 

Not how you imagine it would, it is not a search feature.
thats a mindf****, You can only identify him with his DNA, but you can only get his DNA from him personally, in which case you would already know him.

I really dont understand why they do it with "DNA", make no sense...

 

Can't be grasshopper more efficient?

 

The fact that you know him is the reason you want his index.

 

It comes in handy for instance if you Create Set where you are removing identical items from a list to create a unique set of values. The question is which values did you use from the original list, up steps List Index

Notice that I didn't use the K output because that is not the same as the actual list that you are sorting in A

 

PS: I believe that David is going to add the output i to the Create Set Component anyway, but it doesn't mean that List Index is redundant. 

It looks like you can use it as a totally decent search feature:

Although as it's been pointed out, member index does this more cleanly.

@Michael haha

@Danny and @Brian thank you for the clear explanation on Member Indices - this particular List component's behavior had been confusing me as I try to sort daylighting data out of Ladybug.

I think I was trying to force it to do what the Find Similar component does. Anyway, got it working now.

Hi Briam,

Thanks for this workflow. It stands useful even after half a decade!!

Cheers!!

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