PDA

View Full Version : Internal nodes of loaded model files?


dtidrow
05-12-2009, 07:22 AM
Is there any way to get a handle to internal nodes of loaded model files? I'd like to be able to toggle on/off various parts of my model that have named nodes - is there a way to get a handle to them using the existing Vizard python interface without writing an OSG visitor?

dtidrow
05-12-2009, 07:28 AM
This looks like what I need:
http://forum.worldviz.com/showthread.php?t=506&highlight=internal+nodes

Figures I'd hit on the right search string after I post...

farshizzo
05-12-2009, 08:55 AM
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:model.setMask(0,'name')To turn the node on, you would re-enable all the node mask bits:model.setMask(viz.ALL_MASK_BITS,'name')