Table of Contents Chapter Index Previous Slide Next Slide 364
Using a color selector

Writing program scripts with JavaScript
Using a color selector
  • Use the color selector to change the lamp bulb color
  • Route the toggle script node's on_changed eventOut into the selector script node's set_selection eventIn

  • Route the selector script node's color_changed eventOut into the bulb Material node's set_emissiveColor eventIn