onkeydown list of values
Hi,
i'm quit a rookie in the world of Vizard and i have a problem with making a list of values by keyboard action. I have a list of values (60, 69, 52, 9, 55, 58, 10, 18, 56) and I want vizard to run throug the list from the beginning to the end , each time you hit the spacebar I want the script to give the next value. Once the last value is reached, I want it to jump back to the beginning and repeat. I've tried something like this: Code:
def onkeydown (key): Can anybody help me with this problem? Thanx |
Try the following code, it should do what you ant:
Code:
numberCycle = viz.cycle([60, 69, 52, 9, 55, 58, 10, 18, 56]) |
yes it works!
thank you |
All times are GMT -7. The time now is 03:10 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC