No errors, but here's the code I'm working with:
Quote:
viztracker.go()
recordedData = []
def RecordTrackingData():
recordedData.append( (headPos.getPosition(), headOri.getQuat()) )
vizact.onupdate(0,RecordTrackingData)
def ApplyTrackingData():
pos,ori = recordedData.pop(0)
viz.MainView.setPosition([pos[0],1.8,pos[2]])
viz.MainView.setQuat(ori)
ApplyDataCallback = vizact.onupdate(0,ApplyTrackingData)
ApplyDataCallback.setEnabled(viz.OFF) #OFF
vizact.ontimer2(TIME_DELAY,0,ApplyDataCallback.set Enabled,viz.ON) #ON
|
I imagine that switching from viz.go() to viztracker.go() is what's causing the issue. I swapped viz.OFF/ON with viztracker.OFF/ON with no results.