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
|