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

Nov 1, 2013 at 5:46pm

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 !

#269892
Nov 1, 2013 at 6:10pm

Please here find attached two patchs to explain :)

#269894
Nov 2, 2013 at 9:09am

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

#269930
Nov 3, 2013 at 11:52am

:(

#270031
Nov 4, 2013 at 5:05pm

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 :)

#270158

You must be logged in to reply to this topic.