Basic HTML version of Foils prepared 5 August 97

Foil 12 Accessing Fields and EventOuts of the other Script - I

From VRML97 Scripting: JavaScript Nodes UC Web Applications Certificate -- July 24 1997. by Wojtek Furmanski and Hasan Ozdemir


The script can access any exposedField, eventIn or eventOut of any node to which it has a pointer:
DEF MyCube3 Transform { }
DEF Example_3 Script {
field SFNode node USE MyCube3
eventIn SFVec3f pos
directOutput TRUE
url "javascript:
function pos(value) {
node.set_translation = value;
}"
}



© 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 Apr 5 1998