<div dir="ltr">this is what  am trying to do now. but how I am doing it is by creating a "menu bar" like abstraction that can produce the GUIs with state saving possibilities via dynamic patching and you only need to give $1 to the bar, ensuring that this will create the unique tag to every GUI coming from that "menu bar". Not what I wanted, but.. hey, problems get solved differently as you digg into it, right? :s<div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 5, 2016 at 4:56 PM, Matt Barber <span dir="ltr"><<a href="mailto:brbrofsvl@gmail.com" target="_blank">brbrofsvl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">​I see. Thanks; that scope problem is a little tougher, but the usual way around it is to keep only one ID-issuing machine in the top patch and then pass the top patch's $0 into all the lower level abstractions as the first creation argument. Anything instantiated in the top patch gets [abstraction $0]; anything deeper gets [​child-abstraction $1].</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I could be wrong about one thing, though: I've been assuming that once everything in a patch (and all its abstractions) is saved in its final form that the instantiation order of everything will be identical across loads. I believe this is guaranteed, but I can't remember for sure.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 5, 2016 at 11:38 AM, José Rafael Subía Valdez <span dir="ltr"><<a href="mailto:jsubiavaldez@gmail.com" target="_blank">jsubiavaldez@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Matt,<div><br></div><div>I mean that the abstractions created inside an abstraction will have an independent order of creation, so when the patch is initialized they count from 0 which conflicts with the ones created in the "main" that also begin in 0.</div><div><br></div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 5, 2016 at 4:11 PM, Matt Barber <span dir="ltr"><<a href="mailto:brbrofsvl@gmail.com" target="_blank">brbrofsvl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default"><font face="verdana, sans-serif">For most of these situations I store settings in a table that saves in the patch. On load I just distribute them to my abstractions as init values. The problem of course is that you have to hand-code the receives and you want something automatic. The solution I posted on Facebook earlier (attached) uses the instantiation order of abstractions to request a unique ID from the main patch. But then you say this</font>:<font face="verdana, sans-serif"> "However, the order of creation resets if in a subpatch or an abstraction with GOP." I don't know what this means; are you saying that the instantiation order does not persist once you have the patch done?</font></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="font-size:12.8px;font-family:arial,sans-serif"><br></span></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 5, 2016 at 8:11 AM, José Rafael Subía Valdez <span dir="ltr"><<a href="mailto:jsubiavaldez@gmail.com" target="_blank">jsubiavaldez@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello Liam,<div><br></div><div>I am implementing a preset saving mechanism, not an initial value. Init will only save the initialization of the object. I was trying to avoid dynamic patching so users could just patch and if wanted to replace the normal TGL with the one that can record different states they could just replace it in a text file. But now I am looking into it. (but not happy as I got so close) </div><div><br></div><div>cheers</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Mon, Sep 5, 2016 at 12:55 PM, Liam Goodacre <span dir="ltr"><<a href="mailto:liamg_uw@hotmail.com" target="_blank">liamg_uw@hotmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>




<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Jose</p>
<p><br>
</p>
<p>I am not clear on what it is you are trying to achieve.</p>
<p><br>
</p>
<p>If you're looking for a toggle with a preset 1 or 0, then there is the "init" option from the properties which will save and load the value for you.</p>
<p><br>
</p>
<p>If it is some sort of dynamic patching problem where you need to send messages to the parent patch, then the easiest thing is to use [iemguts/sendcanvas], which lets you dictate a target level (ie. [iemguts/sendcanvas 1] will send messages to the parent
 patch.</p>
<p><br>
</p>
<p>Do either of these help, or are you still needing a special ID number for each instance of an abstraction?<br>
</p>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Pd-list <<a href="mailto:pd-list-bounces@lists.iem.at" target="_blank">pd-list-bounces@lists.iem.at</a>> on behalf of José Rafael Subía Valdez <<a href="mailto:jsubiavaldez@gmail.com" target="_blank">jsubiavaldez@gmail.com</a>><br>
<b>Sent:</b> 04 September 2016 11:02<br>
<b>To:</b> pd-list<br>
<b>Subject:</b> [PD] Stuck with a "persistency" problem</font>
<div> </div>
</div>
<div>
<div dir="ltr"><div><div>Hello List,
<div><br>
</div>
<div>over the last couple of days, I have been programming a preset system using the [pool] object.</div>
<div>I have made a lot of progress but now I am stuck with a persistence problem.</div>
<div><br>
</div>
<div>a couple of days ago I started with my "scope" tests to see if its working, this included</div>
<div><br>
</div>
<div>- on the main canvas</div>
<div>- in a subpatch</div>
<div>- in a GOP abstraction with no arguments </div>
<div>- in a GOP abstraction with arguments.</div>
<div><br>
</div>
<div>and here is where it got tricky. The solution that I have been trying to implement is to retrieve the parent window name or better yet the name of the canvas. [window_name] object by HCS does the trick, but the name changes every time you open PD and the
 file, so it is not persistent. [canvasname] on the other hand does not provide the parent canvas name.</div>
<div><br>
</div>
<div>Until now, the idea was to create a double ID that sets the name dynamically in order of creation thanks to M. Barber's and L. Goodacre's way of doing it, However, the order of creation resets if in a subpatch or an abstraction with GOP. so the second
 ID, would let me know the scope that I am in by adding the "window or canvas" that contains the abstractions.</div>
<div><br>
</div>
<div>Maybe someone can point me in the right direction or enlighten me with a different solution.</div>
<div><br>
</div>
<div>the objective of the set of abstractions is to just replace the object [tgl] with my abstraction [tgl_pre] and have the preset system working, so I am trying to do it without setting arguments with [tgl_pre $1] as this would imply that if I have 128 tgls,
 I have to rename each with a unique $1 each.</div>
<div><br>
</div>
<div>Thanks to all that have helped: T. Grill, M. Barber, L. Goodacre.</div>
<div><br>
</div>
<div>and thanks to anyone that can chip in with some ideas.</div>
<div><br>
</div>
<div>cheers</div>
</div></div><span><font color="#888888"><div>-- <br>
<div>
<div dir="ltr">José Rafael Subía Valdez<br>
<div><a href="http://www.jrsv.net" target="_blank">www.jrsv.net</a>
<div style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table style="width:90%;background-color:rgb(255,255,255);overflow:auto;padding-top:20px;padding-bottom:20px;margin-top:20px;border-top:1px dotted rgb(200,200,200);border-bottom:1px dotted rgb(200,200,200)" cellspacing="0">
<tbody>
<tr style="border-spacing:0px" valign="top">
<td colspan="2" style="vertical-align:top;padding:0px;display:table-cell">
<div></div>
<div style="color:rgb(0,120,215);font-weight:400;font-size:21px;font-family:"wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;line-height:21px">
<a href="http://www.jrsv.net/" style="text-decoration:none" target="_blank">JRSV | Official website</a></div>
<div style="margin:10px 0px 16px;color:rgb(102,102,102);font-weight:400;font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;line-height:14px">
<a href="http://www.jrsv.net" target="_blank">www.jrsv.net</a></div>
<div style="display:block;color:rgb(102,102,102);font-weight:400;font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;line-height:20px;max-height:100px;overflow:hidden">
Home. Welcome to my website, here you will find information regarding my work in different fields of research and production. Find out about my projects that involve ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<div><br>
</div>
<div><br>
<div><br>
<font face="'lucida grande', tahoma, verdana, arial, sans-serif" size="4"><span style="font-size:14px;line-height:17px"><br>
</span></font></div>
</div>
</div>
</div>
</div>
</div>
</font></span></div>
</div>
</div>
</div>
</div>

<br></div></div>______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/li<wbr>stinfo/pd-list</a><br>
<br></blockquote></div><span><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr">José Rafael Subía Valdez<br><div><a href="http://www.jrsv.net" target="_blank">www.jrsv.net</a><br><div><br></div><div><br><div><br><font face="'lucida grande', tahoma, verdana, arial, sans-serif" size="4"><span style="font-size:14px;line-height:17px"><br></span></font></div></div></div></div></div>
</span></div>
<br>______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/li<wbr>stinfo/pd-list</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr">José Rafael Subía Valdez<br><div><a href="http://www.jrsv.net" target="_blank">www.jrsv.net</a><br><div><br></div><div><br><div><br><font face="'lucida grande', tahoma, verdana, arial, sans-serif" size="4"><span style="font-size:14px;line-height:17px"><br></span></font></div></div></div></div></div>
</div>
</div></div><br>______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/li<wbr>stinfo/pd-list</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">José Rafael Subía Valdez<br><div><a href="http://www.jrsv.net" target="_blank">www.jrsv.net</a><br><div><br></div><div><br><div><br><font face="'lucida grande', tahoma, verdana, arial, sans-serif" size="4"><span style="font-size:14px;line-height:17px"><br></span></font></div></div></div></div></div>
</div>