#1
|
|||
|
|||
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): File "C:\Program Files\WorldViz\Vizard5\python\vizact.py", line 3183, in _callGroup val = e.call(arg) File "C:\Program Files\WorldViz\Vizard5\python\vizact.py", line 2949, in _callStatic return func(*args,**kwargs) File "C:\Program Files\WorldViz\Vizard5\python\tools\highlighter.py", line 627, in _intersectBoundingBox bs = item.getBoundingSphere(viz.ABS_GLOBAL) AttributeError: 'str' object has no attribute 'getBoundingSphere' |
Tags |
error, highlighter, list, node, tool |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using highlighter tool with wand | Samuli | Vizard | 2 | 09-24-2015 12:50 PM |
How to get all the Drawables in a model as Nodes | pankaj bansal | Vizard | 2 | 01-02-2013 10:30 AM |
3ds Exported .IVE Model mirrors movement of Mainview | Felix | Vizard | 9 | 05-18-2012 09:17 AM |
Change model alpha and memory leak | hosier | Vizard | 2 | 06-25-2009 10:55 AM |
Internal nodes of loaded model files? | dtidrow | Vizard | 2 | 05-12-2009 08:55 AM |