WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-26-2018, 08:14 PM
Vishav Vishav is offline
Member
 
Join Date: Jun 2017
Posts: 57
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?
Reply With Quote
  #2  
Old 11-28-2018, 08:30 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The function registered with vizact.ontimer will get called every 8 seconds. So you could be adding the point multiple times. In that case removing the point will only remove the last one added. If you want the callback function called only once, use the vizact.ontimer2 command instead.
Reply With Quote
  #3  
Old 12-05-2018, 04:49 AM
Vishav Vishav is offline
Member
 
Join Date: Jun 2017
Posts: 57
Thanks Jeff
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to remove Oculus warning message? hzhao Vizard 1 10-19-2015 05:50 AM
camera view remove flying robot robgulwell Vizard 0 11-15-2011 01:01 AM
vizdlg Panel: Add and remove disbeat Vizard 2 02-08-2011 12:44 PM
How to remove the head from avatar Xianshi Xie Vizard 2 06-22-2009 09:05 AM
How to remove a modifier Joran Vizard 1 05-27-2009 12:53 PM


All times are GMT -7. The time now is 08:08 AM.


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