WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Internal nodes of loaded model files? (https://forum.worldviz.com/showthread.php?t=2027)

dtidrow 05-12-2009 07:22 AM

Internal nodes of loaded model files?
 
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

possible solution...
 
This looks like what I need:
http://forum.worldviz.com/showthread...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:
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')


All times are GMT -7. The time now is 01:41 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC