# Is there a way to find pick actor index from vtkActorCollection?

**URL:** https://discourse.vtk.org/t/is-there-a-way-to-find-pick-actor-index-from-vtkactorcollection/2086
**Category:** Development
**Created:** [November 12, 2019, 8:23am UTC](https://discourse.vtk.org/t/is-there-a-way-to-find-pick-actor-index-from-vtkactorcollection/2086 "2019-11-12T08:23:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rai-sam](https://discourse.vtk.org/user_avatar/discourse.vtk.org/rai-sam/32/667_2.png) [@rai-sam](https://discourse.vtk.org/u/rai-sam)
#### Post date: [November 12, 2019, 8:23am UTC](https://discourse.vtk.org/t/is-there-a-way-to-find-pick-actor-index-from-vtkactorcollection/2086/1 "2019-11-12T08:23:43Z")

</div>

I have imported actors and added to vtkActorCollection. Then I implemented a vtkPropPicker. Now I want to know the i’th value of that picked actor from that vtkActorCollection?

There is a vtkActorCollection method vtkObject\* GetItemAsObject(int i) to return i’th object from vtkActorCollection. Is there any method which finds the actor from vtkActorCollection and returns the i’th int value?

If I have to do it manually, then how to check if two actors are same? Comparing paths?

---

<div class="post-metadata">

### Author: ![rai-sam](https://discourse.vtk.org/user_avatar/discourse.vtk.org/rai-sam/32/667_2.png) [@rai-sam](https://discourse.vtk.org/u/rai-sam)
#### Post date: [November 12, 2019, 9:16am UTC](https://discourse.vtk.org/t/is-there-a-way-to-find-pick-actor-index-from-vtkactorcollection/2086/2 "2019-11-12T09:16:13Z")

</div>

Can I use vtkInformation for this purpose?
