#1
|
|||
|
|||
picked objects
When pick() returns a valid object,
is there some way to determine which object was picked? |
#2
|
|||
|
|||
Hi Jerry,
If you want to know which object was picked, then compare it with the object. Example: Code:
picked = viz.pick() if picked == box: print 'box was picked' elif picked in (ball1,ball2,ball3): print 'one of the balls was picked' |
|
|