Thread: picked objects
View Single Post
  #2  
Old 12-12-2005, 02:26 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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'
Reply With Quote