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

proto-matrix-gate.vr

proto-matrix-gate.vr (wrl ) [ flux / bitmanagement / cortona / octaga ]


  PROTO Matrix_Gate [
                     eventIn SFBool activate
                     eventOut SFString isActive
                     field SFString target ""
                    ]
  {
     Script {
        eventIn SFBool activateSc IS activate
        eventOut SFString isActiveSc IS isActive
        field SFString targetSc IS target
  
        directOutput TRUE
        mustEvaluate TRUE
  
        url "javascript:
        function activateSc(value) {
          if( value == true ) {
            isActiveSc = targetSc;
          }
        }
      "
     }
  }
  


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