WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-12-2005, 02:06 PM
Jerry Jerry is offline
Member
 
Join Date: Jun 2004
Posts: 105
picked objects

When pick() returns a valid object,
is there some way to determine
which object was picked?
Reply With Quote
  #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
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:31 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC