![]() |
|
|
|
#1
|
|||
|
|||
|
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! |
|
#2
|
|||
|
|||
|
Highlighter works, you just need to declare the sub-nodes as objects.
Code:
gallery = viz.addChild('gallery.ive')
nodes = {}
for name in gallery.getNodeNames():
node = gallery.getChild(name) #create child object
nodes[node] = name #store in dict with its name
from tools import highlighter
tool = highlighter.Highlighter()
tool.setItems(nodes.keys())
def onHighlight(e):
if e.new in nodes:
print '{} is highlighted'.format(nodes[e.new])
viz.callback(highlighter.HIGHLIGHT_EVENT,onHighlight)
|
![]() |
| Tags |
| error, highlighter, list, node, tool |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using highlighter tool with wand | Samuli | Vizard | 2 | 09-24-2015 01:50 PM |
| How to get all the Drawables in a model as Nodes | pankaj bansal | Vizard | 2 | 01-02-2013 11:30 AM |
| 3ds Exported .IVE Model mirrors movement of Mainview | Felix | Vizard | 9 | 05-18-2012 10:17 AM |
| Change model alpha and memory leak | hosier | Vizard | 2 | 06-25-2009 11:55 AM |
| Internal nodes of loaded model files? | dtidrow | Vizard | 2 | 05-12-2009 09:55 AM |