get object on mouse click
1 Attachment(s)
Hi all,
I'm very new with Vizard. I'm trying to get object on mouse click. But I just get to root object viz.VizChild(1) not the subobject like c1,c2.... The viz.pick(info=True).name just return the name of material not object name. How could I access to subobject? http://forum.worldviz.com/attachment...1&d=1350637144 |
You can use the node.getChild command to get a handle to a sub-node. Example:
Code:
slider = viz.addChild('sodoku.ive') |
I already tried it. It worked.
But it is so strange to compare with other game engine Anyway, thanks for your comments |
Quote:
|
Calling getChild should not introduce more drawables. Can you post an example where it does?
This is already a feature in the upcoming Vizard 5 release. You will be able to get access to the full node hierarchy of the intersection. |
Quote:
|
All times are GMT -7. The time now is 06:59 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC