WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-12-2009, 07:22 AM
dtidrow dtidrow is offline
Member
 
Join Date: Dec 2008
Posts: 13
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?
Reply With Quote
  #2  
Old 05-12-2009, 07:28 AM
dtidrow dtidrow is offline
Member
 
Join Date: Dec 2008
Posts: 13
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...
Reply With Quote
  #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
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to input several model files and then save one output file mspusch Vizard 1 07-15-2008 10:30 PM


All times are GMT -7. The time now is 07:27 AM.


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