Forums > MaxMSP

get script name of the bpatcher inside this bpatcher ("!this equivalent")

November 1, 2013 | 5:46 pm

Hello everyone,

Here my situation: Dynamically, I’m making a bpatcher, I’m giving a scriptname to it and I’m loading a patch inside (all with script message to "thispatcher"). Inside the loaded patch, there is a button to delete the bpatcher with a "dispose" message to "thispatcher". When I click this button, the bpatcher is deleted but I would like to know the scriptname of the bpatcher I’m deleting (Like, "oh my script name is toto"). How is it possible ? It’s a bit similar to a "!this" in C or C++…

It’s difficult to explain, hope it’s clear enough…

Thank you !


November 1, 2013 | 6:10 pm

Please here find attached two patchs to explain :)


November 2, 2013 | 9:09 am

Maybe that will be clearer like that… how to know the script name of a bpatcher
in the patcher file ?


November 3, 2013 | 11:52 am

:(


November 4, 2013 | 5:05 pm

If I remember correctly you can get the patcher’s scripting name within javascript.

maybe this.patcher.name()

I’m not sure. Maybe search the javascript documentation or forum.

good luck :)


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