[PD] a method for a subpatch to determine the name of its parent patch

Jonathan Wilkes jancsika at yahoo.com
Wed May 22 05:14:53 CEST 2013


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 at gmail.com>
To: pd-list at 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 at iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20130521/10cdc794/attachment.htm>


More information about the Pd-list mailing list