Returning an index in a list

   4447   3   2
User Avatar
Member
41 posts
Joined:
Offline
I have a changing group of points and need to be able to always get the 3rd point within that group.

Is there a way to treat a group like an array in other languages? For instance I would like to be able to just use and expression like group to return the point number of the 3rd point in the group list.

Any help with this would be really appreciated. I run into this problem a lot and finally had to ask.
~adam
User Avatar
Member
344 posts
Joined: July 2005
Offline
I really don't know the answer to this, but as a hack solution you could brach off in your network, blast away everything except the group, and always grab the third point from what remains. If you need to reference the original point number just add it as an attribute to the group before you blast the points outside the group.
User Avatar
Member
17 posts
Joined: July 2007
Offline
perhaps this expression can:

int(arg(pointlist(“sop_path”,“groupname”), 3))

hope this help,
User Avatar
Member
41 posts
Joined:
Offline
Exactly what I was looking for! Thanks for the help
~adam
  • Quick Links