get script name of the bpatcher inside this bpatcher ("!this equivalent")
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 !
Please here find attached two patchs to explain :)
Maybe that will be clearer like that... how to know the script name of a bpatcher
in the patcher file ?
:(
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 :)