gilberto bernardes wrote:
Dear all,
I would like to have a procedure in a patch that I'm not figuring out how to do it. I want to close several abstraction when I close one of them. I was trying to find an object similar to 'openpatch' or even a
what is this object [openpatch]? is it really just a wrapper around the ";pd open .." message?
mesage such as'; pd open ...' but to close. Does someone knows if and how its possible to do it?
send a [menuclose 1( message to the patch's canvas.
e.g. [; pd open mypatch.pd .(
and to close this patch: [; pd-mypatch.pd menuclose 1(
(if you omit the "1" or set it to "0", you will get the "do you really want to close" message, which is probably not what you want)
fmg.asdr IOhannes
Hi list, Hallo IOhannes!
2007/10/17, IOhannes m zmoelnig zmoelnig@iem.at:
send a [menuclose 1( message to the patch's canvas.
e.g. [; pd open mypatch.pd .(
and to close this patch: [; pd-mypatch.pd menuclose 1(
(if you omit the "1" or set it to "0", you will get the "do you really want to close" message, which is probably not what you want)
I have tried the "pd open" and "menuclose" messages but pd crash when I bang menuclose. I don't know is something is wrong in the sintaxis or there is some bug. I use Pd 0.39.2-extended-rc3 on windows. Attached is a example patch.
Saludos!
Sorry...the attached patches!
raul diaz wrote:
Hi list, Hallo IOhannes!
I have tried the "pd open" and "menuclose" messages but pd crash when I bang menuclose. I don't know is something is wrong in the sintaxis or there is some bug. I use Pd 0.39.2-extended-rc3 on windows. Attached is a example patch.
i haven't looked at your patches, but for the sake of simplicity i have omitted the warning that an abstraction must not kill itself. e.g. if you trigger the "menuclose" from within the abstraction (or the trigger "goes through" your abstraction), this will crash Pd. it is both a bug in your patch ("suicide" will kill you) and a bug in Pd (even though it is a bug in the patch, Pd should never just crash)
this can also be found in the bugtracker, but i don't remember the #id.
fgmasdr IOhannes
IOhannes m zmoelnig wrote:
raul diaz wrote:
Hi list, Hallo IOhannes!
I have tried the "pd open" and "menuclose" messages but pd crash when I bang menuclose.
this can also be found in the bugtracker, but i don't remember the #id.
[ 1518030 ] subpatch clearing itself crashes Pd
http://sourceforge.net/tracker/index.php?func=detail&aid=1518030&gro...
Hi again!
2007/10/19, IOhannes m zmoelnig zmoelnig@iem.at:
i haven't looked at your patches, but for the sake of simplicity i have omitted the warning that an abstraction must not kill itself. e.g. if you trigger the "menuclose" from within the abstraction (or the trigger "goes through" your abstraction), this will crash Pd. it is both a bug in your patch ("suicide" will kill you) and a bug in Pd (even though it is a bug in the patch, Pd should never just crash)
Ok, I understand! But anyway, instead to trigger "menuclose" from whitin the abstraction, I trigger it from parent patch, so Pd doesn't have to crash. How must I use menuclose to use it correctly? Please, take a look at attached patch.