WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   How can i check where clicked? (https://forum.worldviz.com/showthread.php?t=2898)

xionward 08-17-2010 06:11 PM

How can i check where clicked?
 
we are using very complex model exported from microstation.

when i use viz.pick() on mousedown event
it return whole model .

but i want get geometry(name) like door, value


now i'm split model to each object
please give some help or tip !



p.s : my english is very poor. sorry :(

TarkaDahl 08-18-2010 01:42 AM

Hi xionward

i think the code would be

subobject = viz.pick(1)
subobjectname = subobject.name

Thanks

knightgba 08-23-2010 05:39 AM

yh, create a new viz.pick() object.
and use viz.callback(YOUR_EVENTNAME, objectof viz.pick())


All times are GMT -7. The time now is 11:44 AM.

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