WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 03-19-2009, 09:11 AM
mberkes mberkes is offline
Member
 
Join Date: Mar 2009
Posts: 8
I have this code for the mouseclick:

Code:
def mouseclick(button):
	if button == viz.MOUSEBUTTON_LEFT:
		object = viz.pick()
	if object.valid():
		data = 'Selected' + items
		position = object.get(viz.POSITION)
		position[1] += 1.2
		arrow.translate(position)
		arrow.visible(viz.ON)
		#record response
		response_data.write(data)
		#flush internal buffer
		response_data.flush()

viz.callback(viz.MOUSEDOWN_EVENT,mouseclick)
#go to blank scene
vizact.whilemousedown(viz.MOUSEBUTTON_LEFT,prep)
#disable mouse navigation
viz.mouse(viz.OFF)
It just goes back to prep, and I would think that it should just repeat what happened before, but no such luck. Still can't disable the mouseclick where I need to or write data, but looking into that. There's also a lot of incomplete code in there, or unnecessary code I need to get rid of (like the arrow over objects)
Reply With Quote
 


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
Sharing Files on SourceForge farshizzo Vizard 1 09-03-2012 11:18 AM
Project .avi or .mpeg file pattie Vizard 2 02-06-2007 08:09 AM


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


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