loadbang and autowatch


    Jun 01 2006 | 10:55 pm
    Hi there,
    I can't seem to figure this out. I want my JS script to init intelf
    on autowatch reload. Right now, I have a lodabang method that works
    just fine when the patch loads, but when I save the script and
    autowatch reloads it, I want it to call loadbang again. Does anyone
    know of a way to make this happen?
    thanks,
    wes

    • Jun 02 2006 | 12:53 am
      Not currently.
      -Joshua
    • Jun 02 2006 | 1:03 am
      Actually, the following might work, since I don't think normal
      properties are removed on recompile. Initial tests with the following
      seem promising...
      autowatch = 1;
      var init;
      if (init)
      loadbang(); // have loaded via autowatch, patch already exists
      function loadbang()
      {
      init = 1;
      // other stuff
      }
      Hope this helps.
      -Joshua