WorldViz User Forum  

Go Back   WorldViz User Forum > Precision Position Tracker (PPT)

Thread Tools Rate Thread Display Modes
Old 04-13-2005, 09:24 PM
mspusch mspusch is offline
WorldViz Team Member
Join Date: Feb 2003
Posts: 218
manually attaching opjects to tracked locations

Interesting question from Worldviz Support Forum at

I would like to spawn objects at the locations of the motion tracking pointers. I can easily import objects and link them to the tracker points, but I don't want the object following the pointer once they are created. What would be the best way to import a current tracking point and assign the location to an object's position that will not change?
how would I attach an object to that location in time without using the Link command? Can I use the 'get' function of the vizppt.dls sensor plugin?
Reply With Quote
Old 04-13-2005, 09:25 PM
mspusch mspusch is offline
WorldViz Team Member
Join Date: Feb 2003
Posts: 218
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

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

All times are GMT -7. The time now is 12:48 PM.

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