Forums > MaxMSP

get abstraction name

Jul 16 2011 | 9:32 pm

How do I get the name (filename) of an abstraction inside itself?

Actually, I want a [receive] inside the abstraction automatically set to the name of the abstraction, when it’s loaded.

If I use [patcherargs] triggered by a loadbang inside a subpatcher I get its name, but with abstractions that doesn’t work.

How do I do that?

best, frank

Jul 17 2011 | 10:02 am

Hallo Frank,

you’ll need to use js with this code:

outlets = 1;

function bang() {

But for your specific problem, I’d use a #1 argument in the abstraction: so it becomes possible to instantiate abstractions with different [receive].

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

Forums > MaxMSP