WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-10-2013, 07:10 AM
torbeng torbeng is offline
Member
 
Join Date: Apr 2012
Posts: 11
Exclamation Children not accessible after saving to/loading OSGb

Is there any way to access groups created in Vizard after saving (to OSGb, IVE, OSG or any other type)?
If I create a group and add other groups or objects to it, I can access the children using getChildren(). After saving to OSGb and loading the file, the children are not accessible - getChildren() returns an empty list.

I also tried to create named parent nodes, so they show up with getNodeNames() and can be retrieved using getChild(name). However, I cannot seem to find a way to name a Vizard group. I tried creating an empty layer with startLayer(name) and retrieving it with endLayer(). I then tried adding children to this layer, but it doesn't seem to work. While the layer shows up after saving/loading, the children are not there. I also tried insertGroupAbove and insertGroupBelow, which also failed. As groups do not seem to have a name, I cannot specify the node name to insert the group above or below.

I don't understand why it is impossible to change the name of a group node as this seems to be a part of the internal representation Vizard uses. Is there any way to expose this data to the python code? Can you please show me a way to access groups and there children after saving and loading? Thanks in advance for your help!
Reply With Quote
 


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


All times are GMT -7. The time now is 12:00 AM.


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