Add this to run with the sightlab data collection and playback
importsightlab_utils.sightlabasslfromsightlab_utils.settingsimport*sightlab=sl.SightLab(gui=False,pid=True,fadequad=True)sightlab.setStartText('Press Spacebar to Start')#Set environmentenv=vizfx.addChild('piazza.osgb')sightlab.setEnvironment(env)#Schedule SightLab loop (note that yield is needed before start and end trial and events that trigger them)defsightLabExperiment():yieldviztask.waitEvent(EXPERIMENT_START)fortrialinrange(sightlab.getTrialCount()):yieldviztask.waitKeyDown(' ')yieldsightlab.startTrial()yieldviztask.waitKeyDown(' ')yieldsightlab.endTrial()viztask.schedule(sightLabExperiment)viztask.schedule(sightlab.runExperiment)
Create a script and call it myScene_Replay.py and add this code to view a replay