![]() |
|
#1
|
|||
|
|||
That code just goes through one trial. To see why following trials are not working I'd have to see the code you added for that
|
#2
|
|||
|
|||
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) |
#3
|
|||
|
|||
each time prep is called another vizact object is created.
Code:
def prep(): viz.MainScene.visible(viz.OFF) vizact.onkeydown(' ', sceneOn,1) Probably the best thing to do is to re-arrange your code using viztask. Waiting for mouseclicks, keypresses, and timers can all be done within the task function. Check out the documentation on viztask and let me know if you have any questions. |
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
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 |