![]() |
|
#1
|
|||
|
|||
|
Trouble with viz.ontimer
I've tried making a method that changes the textures on a different walls in a store. The walls are all different textures and can be changed by adjusting the slider in the GUI which calls this method:
Code:
def setLight(light):
FRAME_RATE = 0.1
disco = vizact.ontimer(1.0*FRAME_RATE, NextMovieFrame)
if light == 0:
disco.setEnabled(viz.OFF)
#Dark light
darkWall()
elif light == 1:
disco.setEnabled(viz.OFF)
#Normal light
originalSettings()
elif light == 2:
disco.setEnabled(viz.OFF)
#Faint light
lightWall()
elif light == 3:
#Disco light
disco.setEnabled(viz.ON)
The problem is that the viz.ontimer (named disco in this case) doesn't turn off. I even tried using values 0 and 1 instead of viz.ON and viz.OFF, however the 'discolights' still can't be turned off. I've looked up other threads and tried adding booleans, but still this doesn't work. Does anyone have an idea? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trouble using custom animations for Live Characters | IGoudt | Vizard | 0 | 09-24-2009 07:37 AM |
| trouble tracking multiple lights | Vkathrynr | Precision Position Tracker (PPT) | 2 | 08-26-2009 01:07 PM |
| Trouble transitioning from one vizard | DBurks2818 | Vizard | 3 | 04-28-2009 03:46 PM |
| Trouble Exporting to .ive | le perdusier | Vizard | 2 | 11-27-2007 05:31 PM |
| trouble with winviz.exe | bnord | Vizard | 4 | 09-21-2006 05:22 AM |