WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #13  
Old 02-01-2005, 03:20 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Can you try the following script and tell me what it prints out:
Code:
import viz
viz.go()

ppt = viz.add('vizppt.dls')
ppt.command(6,'',1,1,1)
ppt.reset()

viz.tracker()

viz.eyeheight(1.8)

def ontimer(num):
	print viz.get(viz.HEAD_POS)[1]

viz.callback(viz.TIMER_EVENT,ontimer)
viz.starttimer(0,0.1,viz.FOREVER)
It should load the ppt tracker, set the eyeheight to 1.8, and continuously print out the latest height of the viewpoint.

The average command will tell the ppt to average the position over the last N number of samples.

The reset mask controls which axes are affected by the reset command. By default all axes should be affected by the reset, but there was a bug in the ppt plugin which caused the y axis to not be affected.
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


All times are GMT -7. The time now is 04:27 PM.


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