Basic HTML version of Foils prepared March 18 1998

Foil 29 ECMAScript Example -I

From Scripting and EAI in VRML97 CPS616 -- Information Track of CPS -- Spring Semester 98. by Hasan Ozdemir (Geoffrey C. Fox)

Listing and VRML of Script Starting a Conventional PositionInterpolater for Foil 29
DEF Action1 Script {
eventIn SFTime clicked
eventOut SFTime start
url "vrmlscript: // Note: Cosmo Player 2.0 still wants to see vrmlscript
function clicked(time)
{ start = time; } "
}
ROUTE GO.touchTime TO Action1.clicked
ROUTE Action1.start TO TIME1.startTime
ROUTE TIME1.fraction_changed TO INTERP1.set_fraction
ROUTE INTERP1.value_changed TO T1.set_translation
Even though its JavaScript



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998