View Single Post
  #2  
Old 10-24-2012, 12:32 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Your while loop is blocking the main update loop, so the tracker will never update. You should never use time.sleep in the main thread. Instead, register a function to be called every 0.25 seconds and print the tracker values within that function:
Code:
import vizact
def PrintValues():
    print glasses.getPosition()
    print glasses.getQuat()

vizact.ontimer(0.25,PrintValues)
Reply With Quote