<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Don't give up yet!</p>
<p><br>
</p>
<p>1. The "discard changes..." message is coming because you have made changes to the loaded abstraction, which will be lost if you make changes to the object name. You can "fix" this with a [dirty 0( message, which tricks the patch into thinking that there
 aren't any unsaved changes. Beware though--this means that if there are any, you'll lose them for good!</p>
<p><br>
</p>
<p>2. You're right--the "coords" message will only come in the patch or sub-patch file where the GOP window is active. All you need to know is the file name of the abstraction that you want to read. Is it just a few specific GOP abstractions that you wish to
 resize? If so, then it's easy--you just send a [read this-abstraction.pd( message to [text define]. If you want to resize *any* abstraction, then we'll have to think of a way of getting the right filename into the "read" message. This should be possible, but
 I'd need to know more about what you're doing.<br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Esteban Viveros <emviveros@gmail.com><br>
<b>Sent:</b> 16 May 2017 03:48<br>
<b>To:</b> Liam Goodacre; PD list<br>
<b>Subject:</b> Re: [PD] How to map GOP size dynamically</font>
<div> </div>
</div>
<div>
<div dir="ltr">I did a test without success.. When I try to change dimension of my abstraction, pd pops a message 'Discard changes to "abstraction.pd"?'. I'm realizing it's impossible to do what I want in pd vanilla.
<div><br>
</div>
<div>I can't find coords in the parent patch.. Only in the abstraction.. If I need to use multiple abstraction I can't see solution.. Well I go ahead without this feature.. :/</div>
<div><br>
</div>
<div>
<div>Thanks..</div>
<div> Esteban</div>
<div><br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">Em seg, 15 de mai de 2017 às 18:59, Esteban Viveros <<a href="mailto:emviveros@gmail.com">emviveros@gmail.com</a>> escreveu:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<p dir="ltr">Liam... Thanks a lot for hacks..!!! I will try to implement it this week and post results here.
</p>
<p dir="ltr">Cheers </p>
<br>
<div class="gmail_quote">
<div dir="ltr">Em seg, 15 de mai de 2017 04:07, Liam Goodacre <<a href="mailto:liamg_uw@hotmail.com" target="_blank">liamg_uw@hotmail.com</a>> escreveu:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="m_-176587978697611541m_-5485505863625163512divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<div>L2Ork and Purr Data let you retrieve the GOP info with the [canvasinfo] object. Unfortunately, I don't think that there is any conventional way of doing in in Vanilla, but I can think of a hack. You could load the .pd text file itself into a [text] object
 and then search for the "coords" line, which will be the last one before all of the connections. You could use this to find the GOP area that the patch loaded with (although not any changes that have been made to it since then).</div>
<div><br>
</div>
<div>It would be more difficult, though not impossible, to implement this if you are dealing with a sub-patch within a parent-patch. You would also need to use an external if you wanted to detect the filename within the patch, for automatically loading the
 .pd file.</div>
<br>
<p></p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block; width:98%">
<div id="m_-176587978697611541m_-5485505863625163512divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Esteban Viveros <<a href="mailto:emviveros@gmail.com" target="_blank">emviveros@gmail.com</a>><br>
<b>Sent:</b> 13 May 2017 16:07<br>
<b>To:</b> Liam Goodacre; PD list</font></div>
</div>
</div>
</div>
<div dir="ltr">
<div id="m_-176587978697611541m_-5485505863625163512divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="color:rgb(0,0,0)">
<div id="m_-176587978697611541m_-5485505863625163512divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><br>
<b>Subject:</b> Re: [PD] How to map GOP size dynamically</font></div>
</div>
</div>
</div>
<div dir="ltr">
<div id="m_-176587978697611541m_-5485505863625163512divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="color:rgb(0,0,0)">
<div>
<div dir="ltr">Thanks for response...
<div><br>
</div>
<div>Liam... I can change dimension of GOP size directly by one number in the proportion I wish. But, in edit mode, I can resize a GOP subtpatch in main patch with mouse. I want to maintain the proportion of rectangle when I slide the right side of my GOP abstraction.
 About donecanvasdialog message I found:</div>
<div><br>
</div>
<div>[donecanvasdialog <x-units> <y-units> <gop> <x-from> <y-from> <x-to> <y-to> <x-size> <y-size> <x-margin> <y-margin>(</div>
<div><br>
</div>
<div>For that I'm wanting to receive a message with value of <x-size> of donecanvasdialog message to scale out <y-to> coordinate.</div>
<div><br>
</div>
<div>Exist some message to send to $0-gopSubpatch which retrieve me a donecanvasdialog or coords messages arguments..?</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">Em sáb, 13 de mai de 2017 às 01:36, Liam Goodacre <<a href="mailto:liamg_uw@hotmail.com" target="_blank">liamg_uw@hotmail.com</a>> escreveu:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="m_-176587978697611541m_-5485505863625163512m_7249673627216791932divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>You can do this with a "coords" or "donecanvasdialog" message sent to the canvas (ie. using [iemguts/sendcanvas] or [send pd-canvasname.pd]).</p>
<p><br>
</p>
<p>I don't remember the arguments exactly, but you can figure them out by opening a .pd file with GOP enabled and then searching for the "coords" line at the bottom. There are 5 or 6 arguments which correspond to GOP dimensions.<br>
</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block; width:98%">
<div id="m_-176587978697611541m_-5485505863625163512m_7249673627216791932divRplyFwdMsg" 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 Brad Garton <<a href="mailto:garton@columbia.edu" target="_blank">garton@columbia.edu</a>><br>
<b>Sent:</b> 13 May 2017 03:47<br>
<b>To:</b> Esteban Viveros<br>
<b>Cc:</b> <a href="mailto:pd-list@mail.iem.at" target="_blank">pd-list@mail.iem.at</a><br>
<b>Subject:</b> Re: [PD] How to map GOP size dynamically</font>
<div> </div>
</div>
</div>
</div>
</div>
<div dir="ltr">
<div id="m_-176587978697611541m_-5485505863625163512m_7249673627216791932divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="color:rgb(0,0,0)">
<div>
<div dir="ltr">Oh I wish we could...
<div><br>
</div>
<div>(and yes I know it's not *that* GOP)</div>
<div><br>
</div>
<div>brad</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, May 12, 2017 at 7:50 PM, Esteban Viveros <span dir="ltr">
<<a href="mailto:emviveros@gmail.com" target="_blank">emviveros@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">In vanilla can I map the GOP size? I want to resize GOP proportionally.
<div><br>
</div>
<div>Thanks any advance!</div>
<div><br>
</div>
<div>Cheers</div>
<span class="m_-176587978697611541m_-5485505863625163512m_7249673627216791932HOEnZb"><font color="#888888">
<div> Esteban Viveros</div>
</font></span></div>
<span class="m_-176587978697611541m_-5485505863625163512m_7249673627216791932HOEnZb"><font color="#888888">
<div dir="ltr">-- <br>
</div>
<div>
<div dir="ltr">
<p dir="ltr"><a href="http://www.estebanviveros.com" target="_blank">www.estebanviveros.com</a>
</p>
</div>
</div>
</font></span><br>
_______________________________________________<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/listinfo/pd-list</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<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/listinfo/pd-list</a><br>
</blockquote>
</div>
<div dir="ltr">-- <br>
</div>
<div>
<div dir="ltr">
<p dir="ltr"><a href="http://www.estebanviveros.com" target="_blank">www.estebanviveros.com</a>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<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/listinfo/pd-list</a><br>
</blockquote>
</div>
<div dir="ltr">-- <br>
</div>
<div>
<div dir="ltr">
<p dir="ltr"><a href="http://www.estebanviveros.com" target="_blank">www.estebanviveros.com</a>
</p>
</div>
</div>
</blockquote>
</div>
<div dir="ltr">-- <br>
</div>
<div>
<div dir="ltr">
<p dir="ltr"><a href="http://www.estebanviveros.com">www.estebanviveros.com</a> </p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>