Scripts allow authors to define their own event-handling code to improve animation sophistication.
Many actions are too complex for animation nodes, such as computed animation paths (e.g. gravity),
algorithmic shapes (e.g. fractals), or collaborative environments (e.g. games).
You can create new sensors, interpolators, etc., using program scripts written in
The Script node selects a program script, specified by a url or contained source code.
Program scripts have field and event interface declarations, each with a data type, a name, and an initial value (for fields only).
These X3D scenes are adapted directly from the
original VRML 2.0 Sourcebook chapter examples.
Introduction to VRML97 SIGGRAPH98 course notes.