Friends, please, assist me with a question.
I want to have a subpatch refer to the name of its parent patch.
The subpatch will be a gop object that can be dropped into parent patches of varying names. The subpatch will have a list of gop abstractions that can be automatically created in a parent patch. How can I get the name of the parent patch from the subpatch for the subsequent [send]?
I have tried [parentdollarzero]. Does it just generate the random number associated with the parent? This is what it looks like to me. Can this number be used with my dynamic patching [send] in a way of which I am not aware?
On another message board, someone recommended [gf/canvas_*], but I don't have gridflow working nor do I want to include it because I am doing this programming for someone else.
Do any of you have solutions for me? I would greatly appreciate advice!
Cheers, Sam
On 05/21/2013 04:41 PM, Samuel Burt wrote:
Friends, please, assist me with a question.
I want to have a subpatch refer to the name of its parent patch.
Hans' [window_name 1] ought to do it (1 refers to one level up, higher number implies more levels up). This is available in pd-extended and pd-l2ork. In pd-l2ork [canvasinfo] may be able to also do this but I am not entirely sure. That's a question for Jonathan.
HTH
There's [canvasinfo] in Pd-l2ork. You can use it to return either the filename of the parent or the symbol associated with the canvas, both of which can be used as receivers.
In Pd-extended there is also [iemguts/canvasname] (at least I think that's the name).
-Jonathan
From: Samuel Burt composer.samuel.burt@gmail.com To: pd-list@iem.at Sent: Tuesday, May 21, 2013 4:41 PM Subject: [PD] a method for a subpatch to determine the name of its parent patch
Friends, please, assist me with a question.
I want to have a subpatch refer to the name of its parent patch.
The subpatch will be a gop object that can be dropped into parent patches of varying names. The subpatch will have a list of gop abstractions that can be automatically created in a parent patch. How can I get the name of the parent patch from the subpatch for the subsequent [send]?
I have tried [parentdollarzero]. Does it just generate the random number associated with the parent? This is what it looks like to me. Can this number be used with my dynamic patching [send] in a way of which I am not aware?
On another message board, someone recommended [gf/canvas_*], but I don't have gridflow working nor do I want to include it because I am doing this programming for someone else.
Do any of you have solutions for me? I would greatly appreciate advice!
Cheers, Sam
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list