WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 02-11-2010, 04:41 AM
lionfish lionfish is offline
Member
 
Join Date: Oct 2009
Posts: 11
Post Code

I add all the objects I create to a list (objectList):

#Create object
obj = viz.add(storefiles[storen])
# Put it in the right place
obj.rotate(0,1,0,rotation*90)

obj.scale(0.05,0.05,0.05) #scale to 1/20th of original size

obj.translate(x*7,0,y*7)

#Add it to the list
objectsList.append(obj)

when I want to "reset" the world, I remove all the objects from the list, with the belief that this should destroy them (is this true - I don't quite understand why, but I cop - is this because garbage collection deals with it?), based on thread:
http://forum.worldviz.com/showthread.php?t=2196

#loop through all the items, deleting them
for row in range(len(objectsList)):

objectsList[row].remove()

(thought to self: would deleting them in this order end up leaving some? as their index changes each time...)

Thanks for any help!
Mike.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
.osg/.ive import - missing geometry & some textures jde Vizard 3 09-04-2009 04:18 PM
Multiple Textures for Diffuse and Specularity Shader Issue shivanangel Vizard 1 05-11-2009 11:44 AM
Max -> Vizard, Two Sided Textures shivanangel Vizard 5 12-04-2008 04:15 AM
number of textures to load lucalatini Vizard 2 05-12-2005 06:50 PM
Overlaying Textures with Alpha Masks vjosh Vizard 7 04-06-2005 08:46 PM


All times are GMT -7. The time now is 09:06 PM.


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