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


1 The script can access any exposedField, eventIn or eventOut of any node to which it has a pointer:
2
3 DEF MyCube3 Transform { }
4 DEF Example_3 Script {
5 field SFNode node USE MyCube3
6 eventIn SFVec3f pos
7 directOutput TRUE
8 url "javascript:
9 function pos(value) {
10 node.set_translation = value;
11 }"
12 }

in Table To:


© 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