WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-06-2012, 05:03 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Register a callback function for the EnterProximity event. Within the callback function you can record the sensor and simulation time to a file:
Code:
def EnterProximity(e):
	"""@args vizproximity.ProximityEvent()"""
	sensor = e.sensor
	time = viz.getFrameTime()
	
	#record sensor and time to file

manager.onEnter(None,EnterProximity)
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
Question about Vizard Expiration Timer Rate mizutani_jun Vizard 2 02-23-2011 09:13 PM
Timer event in viztask GiudiceLab Vizard 1 10-07-2010 12:14 PM
timer question again Elittdogg Vizard 3 10-18-2007 10:29 AM
Timer speed Jerry Vizard 1 12-08-2006 11:01 AM
timer paulpars Vizard 2 06-14-2006 02:31 PM


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


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