Send a list to a named bpatcher

Feb 3, 2008 at 4:27pm

Send a list to a named bpatcher

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

#35634
Feb 16, 2008 at 2:53am

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.

#121661
Mar 1, 2008 at 7:59am

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

#121662

You must be logged in to reply to this topic.