WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   picked objects (https://forum.worldviz.com/showthread.php?t=468)

Jerry 12-12-2005 02:06 PM

picked objects
 
When pick() returns a valid object,
is there some way to determine
which object was picked?

farshizzo 12-12-2005 02:26 PM

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'



All times are GMT -7. The time now is 08:01 AM.

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