Table of Contents Chapter Index Previous Slide Next Slide 338
Defining the program script interface

Introducing script use
Defining the program script interface
  • A Script node also declares the program script interface
  • fields and events - ins and outs
  • 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
    }