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

Introducing script use
Defining the program script interface
  • Script nodes also declare:
  • fields and events - the interface
  • Each has a name and data type
  • Fields have an initial value
  • Script {
        field SFFloat cycles 2.0
        field SFFloat radius 0.5
        . . .
        eventIn  SFFloat set_fraction
        eventOut SFVec3f position_changed
    }