Table of Contents Chapter Index Previous Slide Next Slide 287

Introducing Script Use


Understanding the Program Script Interface

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