WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 11-11-2010, 02:40 AM
Rinya Rinya is offline
Join Date: Nov 2010
Posts: 2
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:

def setLight(light):
    FRAME_RATE = 0.1
    disco = vizact.ontimer(1.0*FRAME_RATE, NextMovieFrame)
    if light == 0:
        #Dark light
    elif light == 1:
        #Normal light
    elif light == 2:
        #Faint light
    elif light == 3:
        #Disco light

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?
Reply With Quote
Old 11-11-2010, 02:59 AM
Rinya Rinya is offline
Join Date: Nov 2010
Posts: 2
Apparently - the slider only went from 0-1-2 and back (but not to 3).
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
Trouble using custom animations for Live Characters IGoudt Vizard 0 09-24-2009 06:37 AM
trouble tracking multiple lights Vkathrynr Precision Position Tracker (PPT) 2 08-26-2009 12:07 PM
Trouble transitioning from one vizard DBurks2818 Vizard 3 04-28-2009 02:46 PM
Trouble Exporting to .ive le perdusier Vizard 2 11-27-2007 04:31 PM
trouble with winviz.exe bnord Vizard 4 09-21-2006 04:22 AM

All times are GMT -7. The time now is 04:29 PM.

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