Highlighter tool on nodes in model
Hi folks,
I'm really struggling with this one. I have a large model imported with many nodes. I want to be able to highlight the objects in the model with the highlighter tool. From the looks of the sample code i need to set the items that are selectable by the highlighter tool. What i'm trying to do (instead of manually entering hundreds of items) is pull the list of nodes using tool.setItems(Model.getNodeNames()) but this does not work at all. I have also tried using tool.setItems(','.join(Model.getNodeNames())) to remove the single quotation marks but it still generates an error: Code:
Traceback (most recent call last): |
I'm trying something different. I certainly cannot figure out how to get the highlighter to highlight sub-nodes (so far).
Can I use the pick function instead? How can I use pick() when wearing an Oculus Rift? I can use it with my mouse on screen in the tutorial but when combined with my vizconnect configuration on Oculus I do not have a mouse pointer. Can i do this with an arrow similar to the laser pointer tool? How can this be implemented is there any example code? As usual any help is much appreciated! |
Highlighter works, you just need to declare the sub-nodes as objects.
Code:
gallery = viz.addChild('gallery.ive') |
Thanks Erik,
I will try this after lunch! |
Thanks again Erik, this works great.
Do you know how I can get this to print the sub-node name? |
I don't understand your question, printing the name of the pointed-at sub-node is literally the only thing the script I posted does!?
|
All times are GMT -7. The time now is 06:14 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC