Forums > Javascript

Send a list to a named bpatcher


Feb 03 2008 | 4:27 pm

Hi list,

I am stuck with a seemingly simple problem, which isn’t explained
clearly enough in archives/docs/examples for me.

I want to send a list to a named bpatcher in my patch.
How do I have to notate it. I tried the following:

var Editor = this.patcher.getnamed("Editor");

function list()
{
var a = arrayfromargs(arguments);
Editor.message("list",a);
}

Throws a "patcher doesn’t understand "list"" error in the Max window

I guess its talking to the bpatcher object instead of my patcher loaded
into the bpatcher. How do I access my bpatcher correctly?

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
— _|_)—-|—–()————–
———-()——–www.ccmix.com

Feb 16 2008 | 2:53 am

Did you ever figure this out? I don’t see a way either.

I remember a recent forum thread where someone else was complaining they couldn’t script a bpatcher properly. Maybe this isn’t supported in Max 4?

I’d work around it by adding another named object that can be scripted properly, and connect that to the bpatcher.

Mar 01 2008 | 7:59 am

Adam Murray schrieb:
> Did you ever figure this out? I don’t see a way either.

no…

> I’d work around it by adding another named object that can be
> scripted properly, and connect that to the bpatcher.

I finally sent it from outside the js with a pattrforward…

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
— _|_)—-|—–()————–
———-()——–www.ccmix.com

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > Javascript