WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-10-2018, 12:04 PM
Vishav Vishav is offline
Member
 
Join Date: Jun 2017
Posts: 57
Disable mouse click till Avatar finish its instructions

I want to user of my interface will only able to click on object shown by avatar only after avatar finish speaking. How its possible?

As user sometime click the target while avatar speaking which causes my code to stop work. Please Help.
Reply With Quote
  #2  
Old 12-12-2018, 04:38 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Use the viztask.runAction command to run an action (e.g. speak action) and wait for it to finish. Before running the action you can disable the mouse and after it completes you can enable the mouse. Can you describe further what you mean by clicking on an object?
Reply With Quote
  #3  
Old 12-12-2018, 06:30 AM
Vishav Vishav is offline
Member
 
Join Date: Jun 2017
Posts: 57
Clicking Object means avatar give two options to children and children has to click on right option. But children usually click on the option before avatar finish command. I want to disable mouse at that time. How it is possible?
Reply With Quote
  #4  
Old 12-13-2018, 12:09 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You could hide the visibility of the mouse cursor using the setVisible command. Or you could disable the GUI objects you don't want clicked.
Reply With Quote
  #5  
Old 01-06-2019, 06:35 AM
Vishav Vishav is offline
Member
 
Join Date: Jun 2017
Posts: 57
Is it possible to disable mouse function for some time rather than hiding visibility of mouse?
Reply With Quote
Reply


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
Avatar using mouse orientation tracker and pre-recorded animation clalual Vizard 4 10-30-2018 08:41 AM
Unexpected Avatar lookAt() behavior when using yield statements chris2307 Vizard 2 12-17-2013 03:58 AM
get object on mouse click Batigol Vizard 5 10-25-2012 09:03 PM
Navigating an avatar using mouse position(2D) in 3D environment james007 Vizard 1 10-16-2009 12:29 PM
Avatar finish speech ? djdesmangles Vizard 2 02-15-2008 07:56 AM


All times are GMT -7. The time now is 06:21 PM.


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