accessing patcher arguments with javascript


    Dec 17 2006 | 12:44 pm
    Hi,
    I must be missing something. I can't find how to access the arguments of a Patcher object in javascript. I would expect the Patcher object to have a method such as getArgs() or a property args, but I can't find anything like it. There seems to be no real answer to this on the forum either.
    Can someone point me in the right direction?
    Thanks,
    Mattijs

    • Dec 17 2006 | 6:12 pm
    • Dec 17 2006 | 9:03 pm
      I looked into this the other day, and I don't think this is currently
      possible. Sorry for the bad news.
      jb
      Am 17.12.2006 um 13:44 schrieb Mattijs Kneppers:
      >
      > Hi,
      >
      > I must be missing something. I can't find how to access the
      > arguments of a Patcher object in javascript. I would expect the
      > Patcher object to have a method such as getArgs() or a property
      > args, but I can't find anything like it. There seems to be no real
      > answer to this on the forum either.
      >
      > Can someone point me in the right direction?
    • Dec 17 2006 | 11:39 pm
      Workaround?:
      Use js to instantiate a patcherargs object, connect its outlets to the js object, send it a bang, deal with the args in js via a list() function, and delete it.
    • Dec 18 2006 | 9:41 am
      Quote: Jeremy Bernstein wrote on Sun, 17 December 2006 22:03
      ----------------------------------------------------
      > I looked into this the other day, and I don't think this is currently
      > possible. Sorry for the bad news.
      >
      > jb
      >
      Oi, that's a pity. I was actually using an external patcherargs, johnpitcairn, but suddenly realised I was probably doing unnessecary work and got onto the forum. Guess I'll stick with the workaround then.
      Thanks all,
      Matttijs