<p dir="ltr">...and [patch_name] external (again pd-l2ork only) that outputs the filepath out of the left outlet and the patch filename out of the right outlet.</p>
<div class="gmail_quote">On Mar 4, 2014 12:47 PM, &quot;Jonathan Wilkes&quot; &lt;<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 03/04/2014 03:00 AM, Kaj Ailomaa wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Tue, Mar 4, 2014, at 02:54 AM, Chris McCormick wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
On 03/03/14 21:55, Kaj Ailomaa wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi. I&#39;ve been googling a bit and looking through the library of objects<br>
that comes with pd-extended, but can&#39;t seem to find a way to get the<br>
name of the patch from within the patch. Anyone know of a nice method to<br>
do this?<br>
</blockquote>
I would use [namecanvas] for this. For example you could have an object<br>
like [namecanvas $0-mypatch] and then you can send messages to the patch<br>
using e.g. [s $0-mypatch].<br>
<br>
</blockquote>
Thanks, but this won&#39;t work for me, as the name has to be the actual<br>
patch name.<br>
<br>
I&#39;ve understood that there might be a fix in the svn version of<br>
[canvasname], apart of iemguts, which would allow getting the name of<br>
the top level patch.<br>
<br>
The reason I had for this is I wanted to have uniquely named patches<br>
that have a common save mechanism, which looks up the savefile based on<br>
the unique patch name.<br>
I was always going to create these uniquely named patches in another top<br>
level patch, so I can get around this problems by adding an argument for<br>
the patch, which is the same as the patchname, and let the save<br>
mechanism look up the filename that way.<br>
<br>
I initially would have wanted the uniquely named patch to be able to be<br>
opened as is, but that&#39;s not a major problem.<br>
</blockquote>
<br>
Currently I think the only way to do this is [filename(---[canvasinfo], which is only in Pd-l2ork.<br>
<br>
-Jonathan<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
______________________________<u></u>_________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
<br>
<br>
</blockquote>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
</blockquote></div>