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


    Nov 02 2013 | 12:46 am
    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 !

    • Nov 02 2013 | 1:10 am
      Please here find attached two patchs to explain :)
    • Nov 02 2013 | 4:09 pm
      Maybe that will be clearer like that... how to know the script name of a bpatcher
      in the patcher file ?
    • Nov 03 2013 | 7:52 pm
      :(
    • Nov 05 2013 | 1:05 am
      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 :)