[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

to activate different timer per script




Hello everybody,

I use WorldView 2.0 for WIN95 and have problems with my scripts.
Why doesen't the following programm work?
I need to activate a (different) timer from inside the script.
I'd be very thankfull for your help !
regards
andrea
andrea@identity.de


DEF Cylinder Transform {
    children [
    DEF cylTouch TouchSensor {},  
    Shape {
      ....    }
    ]
}

DEF TIMER_start TimeSensor { loop FALSE cycleInterval 5 },

DEF ani Script {
	directOutput TRUE
	mustEvaluate TRUE
	eventIn SFBool activate
	field SFNode timer USE TIMER_start 
url [ "javascript:
	function activate(value, ts) {
		if (value == TRUE) {
		timer.set_startTime = ts;
		}
	}
	",]
}
ROUTE cylTouch.isActive TO ani.activate		

-------------------------------------------------------------------
*** Please send administrative requests to <majordomo@sdsc.edu> ***
-------------------------------------------------------------------