media @ VU
[] readme course preface I 1 2 II 3 4 III 5 6 7 IV 8 9 10 V 11 12 afterthoughts appendix references examples resources _

talk show tell print

effect-style.vr

effect-style.vr (wrl ) [ flux / bitmanagement / cortona / octaga ]


  <p>
  <3dobject start=1 w=0 h=0>
  DEF modifier-script-@id Script {
  
  field SFNode me USE modifier-script-@id
  field SFNode slide USE @the_id
  
  field SFNode display USE display
  field SFNode view USE view
  field SFNode root USE root
  field SFNode right USE right
  field SFNode left USE left
  field SFNode drop USE drop
  field SFNode logo USE logo
  field SFNode background USE background
  
  field SFInt32 from @from
  field SFInt32 to @to
  
  eventIn SFInt32 level
  url "javascript:
       function initialize() {
       Browser.addRoute(slide,'level',me,'level');
       }
       function shutdown() {
       Browser.deleteRoute(slide,'level',me,'level');
       }
       function level(value,time) {
       if (value > from && ( to == -1 || value <= to )) { 
           background.skyColor = '@sky';
           drop.whichChoice = @drop;
           logo.string = '@logo';
  
           display.show = '@display';
           display.url = '@url';
           display.alpha = '25';
           display.shape = '@shape';
           display.scene = '@scene';
           //right.background = '@r_bg';
           //left.background = '@l_bg';
           //right.transparency = '@r_a';
           //left.transparency = '@l_a';
           //right.color = '@r_color';
           //left.color = '@l_color';
           //right.text = '@r_text';
           //left.text = '@l_text';
           //right.visible = '@r_visible';
           //left.visible = '@l_visible';
           //right.string = '@r_string';
           //left.string = '@l_string';
           right.dialog = '@r_bulb';
           left.dialog = '@l_bulb';
           right.persona = '@r_persona';
           left.persona = '@l_persona';
           right.translation = '@r_p';
           left.translation = '@l_p';
       }
      }"
  }
  </3dobject>
  
  


(C) A. Eliëns 21/5/2007

You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.