Reading name of bpatcher instance from inside the bpatcher.
I have a bunch (about 20) bpatcher instances in a patch, and they all have sensible scripting names. From inside the bpatcher, I'd like to be able to read the scriptingname of the instance, and display it on a label. Currently I'm sending each instance's name from the parent patch to each bpatcher on loadbang, and again it seems messy. Can the bpatcher instance read it's script name?
thanks.
G'day Memo,
Can do it this way via javascript:
outlets=1;
function bang()
{
if(this.patcher.box){
outlet(0, this.patcher.box.varname);
}
}
to get the scripting name of a bpatcher from inside itself.
See here for more related info:
Joe
I love when I come here and see old post my memo.