Grasshopper

algorithmic modeling for Rhino

there is some problem with my item index component. when i call an index from a list,for example, index (0) it only show me the (-1) as output. can anyone help me with that?

Views: 487

Attachments:

Replies to This Discussion

[Item Index] component returns the index of a given item in a list or -1 if it does not find that item.

[List item] component returns the item of a given index in a list.

Therefore, if you are looking for a item in the list use [List item]. Instead if you want to know the index of an item, you must give it an item (exact) that contains that list using [Item Index] component.

Tip: Read the description of the components and their parameters. Rigth click on component>Help...

Also note that you almost never want to use [Item Index]. It doesn't do what you think it does. Use [Member Index] from the Sets panel instead.

Member Index was exactly what i was looking for. thank you david and daniel.

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