View Single Post
Old 02-03-2016, 07:21 AM
Seadna Seadna is offline
Join Date: Nov 2015
Posts: 40
Question 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:

Traceback (most recent call last):
  File "C:\Program Files\WorldViz\Vizard5\python\", line 3183, in _callGroup
    val =
  File "C:\Program Files\WorldViz\Vizard5\python\", line 2949, in _callStatic
    return func(*args,**kwargs)
  File "C:\Program Files\WorldViz\Vizard5\python\tools\", line 627, in _intersectBoundingBox
    bs = item.getBoundingSphere(viz.ABS_GLOBAL)
AttributeError: 'str' object has no attribute 'getBoundingSphere'
Reply With Quote