WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-11-2012, 07:51 AM
asdf asdf is offline
Member
 
Join Date: Sep 2012
Posts: 6
Export/Save state of level

I want to import the level, change some of the loaded objects and save the level again.
Is there some kind of best practise?

If there isn't i would save all objects in some kind of XML file or (if there is some kind of "masterarray with all objects") serialise them with pickle for python.
Any suggestions regarding these ideas?

The Question is somewhat related to this question, except that i don't really care about the exported format, as long as i can import it again.
Reply With Quote
  #2  
Old 12-11-2012, 10:36 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Can you explain how the objects are changing? Perhaps you can just save information to a text file about how they changed.
Reply With Quote
  #3  
Old 12-11-2012, 02:57 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You can export the scene to the osg format and load it later. See the last post in this thread.
Reply With Quote
  #4  
Old 12-18-2012, 02:25 AM
asdf asdf is offline
Member
 
Join Date: Sep 2012
Posts: 6
Thanks that will work perfect.
Load Scene (including objects) interact with them and safe the Scene again. I could use a txt file or XML, but if I can directly save as osg, it's much easier.
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
'VizChild' object has no attribute 'state' nat_bor Vizard 3 03-11-2011 11:51 PM
rendering level shahramy Vizard 1 07-26-2010 12:12 PM
Check if an avatar has a state "123" Josh Vizard 1 04-06-2010 01:11 PM
Level of Detail envisC Vizard 2 10-22-2009 12:07 PM
On Screen Keyboard betancourtb82 Vizard 14 10-03-2006 12:38 PM


All times are GMT -7. The time now is 01:33 AM.


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