hey folks

been trying to get something going with a Kovoso piece for a MU Gallery
and well    -   I need a clue



a  working  file is
http://www.pd.org/~thatguy/online/hope7b.wrl

First I can't seem to inline it into another file and have the text even
appear!  (This is the real issue)
Second I've rehacked the Javascript a number a times but can't get a
simpler solution to work...and dang it I'm sure there is one...  How do I
remove that Clock & Debug.set_float part?  (This is I hope the solution)


thanks

steve

#####################


DEF Clock TimeSensor {
                 loop TRUE       },

DEF Debug Script {


                                eventIn  SFTime set_CO
                        eventOut MFString string_changed
                                eventOut SFInt32 whichChoice

                        url "javascript:

                        function set_CO ( ) {
                        whichChoice = whichChoice + 1; }

                                function set_float( ) {

                    string_changed[0] = 'Collateral: ' + whichChoice;
                                }"

                },

ROUTE TS.touchTime TO Debug.set_CO
ROUTE Clock.fraction_changed  TO Debug.set_float
ROUTE Debug.string_changed    TO Message.set_string





Reply via email to