[vtkusers] Picking with python
Prabhu Ramachandran
prabhu at aero.iitm.ernet.in
Wed Mar 13 22:18:01 EST 2002
>>>>> "HS" == Harris Scott R <Harris> writes:
HS> When I pick, I search my objects trying to find what object
HS> corresponds to the actor I clicked. Here's how I do it:
HS> for i in myobjects: if pickedactor==i.thisactor:
HS> object_i_clicked_on=i
HS> The problem is that this only works some of the time. I can go
HS> into the code and print all the actors and compare this with
HS> printing pickedactor and often nothing matches. Anyhow, I get
HS> around this in an ugly way by doing this:
This is pretty wierd. Could you try your code with a more recent
version of VTK?
prabhu
More information about the vtkusers
mailing list