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-modifier.vr

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


  <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 view USE view
  field SFNode root USE root
  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';
       }
      }"
  }
  </3object>
  
  


(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.