View Single Post
  #2  
Old 04-13-2005, 09:25 PM
mspusch mspusch is offline
WorldViz Team Member
 
Join Date: Feb 2003
Posts: 223
You can easily do the following in a timer or keyboard event:


# Initialization
obj = viz.add('myobject.wrl')
ppt = viz.add('vizppt.dls')

# In the event
data = ppt.get()
newObj = obj.copy()
newObj.translate(data[0], data[1], data[2])


The event code spawns a new object (without accessing the disk) and then uses the current PPT location assign it's location.


Hope this helps,
WorldViz Team
Reply With Quote