<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>Ah, I see. Unfortunately, that's going to be very difficult. I did manage to get my Context patch to work with mouse resizing (see
<a class="OWAAutoLink" id="LPlnk761892" href="https://github.com/LGoodacre/context-sequencer" previewremoved="true">
https://github.com/LGoodacre/context-sequencer</a>), but it was a very long and involved process.</p>
<p><br>
</p>
<p>So far as I can tell, there is no way of sensing the GOP-resizing function that you've recorded in the gif. (If you can prove me wrong, I'll be very happy!) Instead, you have to get the mouse position data using [iemguts/receivecanvas], calculate when the
 mouse hangs over the edge, sense the mouse clicks, and then feed the data into a "coords" message.</p>
<p><br>
</p>
<p>You might be able to take the Context patch and strip it down until you're left with only the elements used to re-size, then fill it back in with whatever you want, but even this task wouldn't be easy.</p>
<p><br>
</p>
<p>Wish I could be more helpful here...<br>
<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 color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b> Esteban Viveros <emviveros@gmail.com><br>
<b>Sent:</b> 17 May 2017 03:47<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 like that.. But don't get the target...
<div><br>
</div>
<div>I need that:</div>
<img tabindex="0" style="max-width:100%" alt="resize.gif" naturalwidth="200" naturalheight="185" src="cid:15c144940957a1e9b8a1">
<div>And resizing with mouse map the x-size of kslider abstraction. Basically I need to tell to the abstration I'm clicking in it's GOP. To resize any way I whish.</div>
<div>Anyway.. I'm having fun!</div>
<div><br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">Em ter, 16 de mai de 2017 às 22:14, Liam Goodacre <<a href="mailto:liamg_uw@hotmail.com">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_5527948944458482710divtagdefaultwrapper" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif,'EmojiFont','Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:12pt" dir="ltr">
<p>Here you go :-)<br>
</p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block; width:98%">
<div id="m_5527948944458482710divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b> Esteban Viveros <<a href="mailto:emviveros@gmail.com" target="_blank">emviveros@gmail.com</a>><br>
<b>Sent:</b> 16 May 2017 22:47</font></div>
</div>
</div>
</div>
<div dir="ltr">
<div id="m_5527948944458482710divtagdefaultwrapper" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif,'EmojiFont','Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:12pt" dir="ltr">
<div style="color:rgb(0,0,0)">
<div id="m_5527948944458482710divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><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">
<div id="m_5527948944458482710divtagdefaultwrapper" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif,'EmojiFont','Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:12pt" dir="ltr">
<div style="color:rgb(0,0,0)">
<div>
<div dir="ltr">Ok! I'm starting to clone kslider object from Max. In Max is possible resize more than one [kslider] simultaneously, so formely I want this feature.
<div><br>
</div>
<div>Other game rule is: Cyclone library can be used. :)<br>
<div><br>
</div>
<div>I attached the patch I have at this moment.</div>
<br>
<div class="gmail_quote">
<div dir="ltr">Em ter, 16 de mai de 2017 às 02:03, 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_5527948944458482710m_-7951897884083969602divtagdefaultwrapper" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif,'EmojiFont','Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:12pt" 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 style="display:inline-block; width:98%">
<div id="m_5527948944458482710m_-7951897884083969602divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b> Esteban Viveros <<a href="mailto:emviveros@gmail.com" target="_blank">emviveros@gmail.com</a>><br>
<b>Sent:</b> 16 May 2017 03:48</font></div>
</div>
</div>
</div>
<div dir="ltr">
<div id="m_5527948944458482710m_-7951897884083969602divtagdefaultwrapper" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif,'EmojiFont','Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:12pt" dir="ltr">
<div style="color:rgb(0,0,0)">
<div id="m_5527948944458482710m_-7951897884083969602divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><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">
<div id="m_5527948944458482710m_-7951897884083969602divtagdefaultwrapper" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif,'EmojiFont','Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:12pt" dir="ltr">
<div style="color:rgb(0,0,0)">
<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" target="_blank">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_5527948944458482710m_-7951897884083969602m_-176587978697611541m_-5485505863625163512divtagdefaultwrapper" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif,'EmojiFont','Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:12pt" dir="ltr">
<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_5527948944458482710m_-7951897884083969602m_-176587978697611541m_-5485505863625163512divRplyFwdMsg" dir="ltr">
<font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><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_5527948944458482710m_-7951897884083969602m_-176587978697611541m_-5485505863625163512divtagdefaultwrapper" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif,'EmojiFont','Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:12pt" dir="ltr">
<div style="color:rgb(0,0,0)">
<div id="m_5527948944458482710m_-7951897884083969602m_-176587978697611541m_-5485505863625163512divRplyFwdMsg" dir="ltr">
<font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><br>
<b>Subject:</b> Re: [PD] How to map GOP size dynamically</font></div>
</div>
</div>
</div>
<div dir="ltr">
<div id="m_5527948944458482710m_-7951897884083969602m_-176587978697611541m_-5485505863625163512divtagdefaultwrapper" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif,'EmojiFont','Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:12pt" dir="ltr">
<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_5527948944458482710m_-7951897884083969602m_-176587978697611541m_-5485505863625163512m_7249673627216791932divtagdefaultwrapper" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif,'EmojiFont','Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:12pt" dir="ltr">
<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_5527948944458482710m_-7951897884083969602m_-176587978697611541m_-5485505863625163512m_7249673627216791932divRplyFwdMsg" dir="ltr">
<font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><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_5527948944458482710m_-7951897884083969602m_-176587978697611541m_-5485505863625163512m_7249673627216791932divtagdefaultwrapper" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif,'EmojiFont','Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols; font-size:12pt" dir="ltr">
<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_5527948944458482710m_-7951897884083969602m_-176587978697611541m_-5485505863625163512m_7249673627216791932HOEnZb"><font color="#888888">
<div> Esteban Viveros</div>
</font></span></div>
<span class="m_5527948944458482710m_-7951897884083969602m_-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" target="_blank" rel="noreferrer">
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" target="_blank" rel="noreferrer">
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" target="_blank" rel="noreferrer">
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" 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" target="_blank" rel="noreferrer">
https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote>
</div>
</div>
</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" target="_blank" rel="noreferrer">
https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote>
</div>
</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>