View Single Post
  #3  
Old 05-12-2009, 08:55 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
If all you need to do is turn the node on/off, then you can use the built-in node.setMask command to accomplish this. To turn off a named node you would set the node mask to 0:
Code:
model.setMask(0,'name')
To turn the node on, you would re-enable all the node mask bits:
Code:
model.setMask(viz.ALL_MASK_BITS,'name')
Reply With Quote