accessing patcher arguments with javascript

Dec 17, 2006 at 12:44pm

accessing patcher arguments with javascript

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

#29265
Dec 17, 2006 at 6:12pm

#90984
Dec 17, 2006 at 9:03pm

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?

#90985
Dec 17, 2006 at 11:39pm

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.

#90986
Dec 18, 2006 at 9:41am

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

#90987

You must be logged in to reply to this topic.