Table of contents Chapter index Previous slide Next slide 398
Defining the program script interface

Introducing script use
Defining the program script interface
  • A Script node also declares the program script interface
  • field, eventIn, and eventOut - inputs and outputs
  • Each has a name and data type
  • Fields have an initial value
  • DEF Bouncer Script {
    
        field    SFFloat bounceHeight 3.0
    
        eventIn  SFFloat set_fraction
    
        eventOut SFVec3f value_changed
    
    }