WorldViz User Forum  

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

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

Interesting question from Worldviz Support Forum at
http://worldviz.us/tt/index.php:

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
  #2  
Old 04-13-2005, 09:25 PM
mspusch mspusch is offline
WorldViz Team Member
 
Join Date: Feb 2003
Posts: 211
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
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


All times are GMT -7. The time now is 03:49 PM.


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