How to remove myTimerAction?
I am using this command in some function
myTimerAction = vizact.ontimer(8,dotappear)
and my function dotappear is:
def dotappear( ):
global point
point=viz.addText3D('o',pos=[1.24,0.78,0.4],scale =(0.01,0.01,0.01),color=(0,1,0))
and after 8 seconds dot appear on the screen.
After some if condition satisfies I want to remove/invisible point using:
if(trial_time>=15):
point.visible(viz.OFF)
But the point is not getting removed. Why?
|