Script problem ... 
Author Message
 Script problem ...

Hi,
anybody try the Browser.add or Browser.createVrmlFromString functions
...?! It doesnt seems to work and i have no error message ... I want to
add some ROUTES "on.the fly" ... Heres the code.

...
  Browser.addRoute(Clock,fraction_changed,PS_BAG,set_fraction);
  Browser.addRoute(PS_BAG,value_changed,BAG,set_translation);

 Browser.createVrmlFromString('DEF PS_BAG PositionInterpolator {
         key [ 0.0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4
          0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 1.0 ]
         keyValue [  0.0 0.3988 -0.4
                          .....   ] }');    doesnt work either.

Thanks,
 Christian



Mon, 28 May 2001 03:00:00 GMT  
 Script problem ...
Hi,
I've successfully used addRoute, the big magic is putting the eventOut &
eventIn between quotation marks, like that:
  Browser.addRoute(Clock,'fraction_changed',PS_BAG,'set_fraction');
  Browser.addRoute(PS_BAG,'value_changed',BAG,'set_translation');

hope this helps,
Gazsi

Quote:

> Hi,
> anybody try the Browser.add or Browser.createVrmlFromString functions
> ...?! It doesnt seems to work and i have no error message ... I want to
> add some ROUTES "on.the fly" ... Heres the code.

> ...
>   Browser.addRoute(Clock,fraction_changed,PS_BAG,set_fraction);
>   Browser.addRoute(PS_BAG,value_changed,BAG,set_translation);

>  Browser.createVrmlFromString('DEF PS_BAG PositionInterpolator {
>          key [ 0.0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4
>           0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 1.0 ]
>          keyValue [  0.0 0.3988 -0.4
>                           .....   ] }');    doesnt work either.

> Thanks,
>  Christian



Fri, 01 Jun 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Scripting problems

2. ksh-awk script problem

3. OS/2 REXX CMD SCRIPT PROBLEM

4. NT Backup script problem?

5. Xinetd script problem

6. Scripting problem

7. Blaxxun scripting problem

8. java scripting problem - again

9. Script problem?

10. Help needed on Protos, Routes, Scripts Problem

11. Java script problem

12. VRML 2.0 script problem

 

 
Powered by phpBB® Forum Software