WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-18-2012, 08:53 AM
snovob93 snovob93 is offline
Member
 
Join Date: Jun 2012
Posts: 6
Event control

In my virtual world I have three targets. When I touch the first target for the first ten minutes I want it to fade out and target 2 to fade in. However, after 10 minutes I want target 3 to fade in. If this is my script for the exit proximity for the three spheres, does anyone know how I can write the conditions in? All the targets (spheres) were created outside of the exit proximity.

def ExitProximity(e):
fade = vizact.fadeTo(0,speed=2)
sphere.addAction(fade)
fade2 = vizact.fadeTo(1,speed=2)
sphere2.addAction(fade2)
fade3 = vizact.fadeTo(1,speed=2)
sphere3.addAction(fade3)
Reply With Quote
  #2  
Old 06-22-2012, 09:32 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
When your callback function is called you can get the time the simulation has been running using the viz.getFrameTime() command. You can set up the condition statements with the returned value.
Reply With Quote
  #3  
Old 06-26-2012, 11:19 AM
snovob93 snovob93 is offline
Member
 
Join Date: Jun 2012
Posts: 6
Okay, we were able to get it to work.

Next Question: Is there a way to get a timer to start when we run the script (That being time zero) and then record each time a target is touched from there? I thought I read it in a script somewhere, and now I can't find it.
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
Mouse event: how to detect no mouse move event, how to set mouse position? Zhi Vizard 3 04-11-2011 06:25 PM
Camare control question(about separated eye view) atamasan Vizard 3 01-28-2010 06:22 PM
version control? billjarrold Vizard 1 01-26-2010 09:39 PM
adding more than 1 action for avatar animation slider control yak Vizard 0 07-21-2009 11:22 AM
intersense: Failed to set control word on \\.\COM1 OueOue Precision Position Tracker (PPT) 2 01-18-2007 12:51 PM


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


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