Push a button
Hi,
I want to push a button with my mouse and afterthat my object should rotate for a special amount. This works, but I had to push the button again and again. Code:
def onButton(obj,state): I want to push the button one-time with my mouse and as long as I hold the button pressed, the object should move on and on. |
You can use the vizact library to enable a timer while the button is down. Here is a simple script showing how to do this:
Code:
import viz |
All times are GMT -7. The time now is 05:16 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC