<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[A GUI plugin adding Max hotkeys and UI feel to Pd vanilla]]></title><description><![CDATA[<p>Get it here: <a href="https://github.com/RVirmoors/maxhotkey-pd" rel="nofollow">https://github.com/RVirmoors/maxhotkey-pd</a></p>
<p>I'm mainly focused on the basic mechanic (probably 90% of my patching) of pressing <code>N</code> to make an object, having it stick to the canvas and hide the cursor while you type in the name, and then pressing <code>Return</code> to apply it.</p>
<p>I assume most people here are already used to the existing Pd workflow, but for people like me who are attempting for the millionth time to come over from Max, this might come in handy.</p>
<p>Another great thing to have would be autocomplete. I tried it with <a href="https://github.com/HenriAugusto/completion-plugin" rel="nofollow">completion-plugin</a>, and with a <a href="https://github.com/RVirmoors/maxhotkey-pd#known-issues" rel="nofollow">small adjustment</a> they seem to play well together. The next step would be to have autocompletion trigger automatically in a Max-like way... I hope I can find time to look into that.</p>
<p>I also just tested the plugin with Seb's <a href="https://github.com/sebshader/pdnext" rel="nofollow">pdnext</a>, and it seems to work just fine, yay!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13810/a-gui-plugin-adding-max-hotkeys-and-ui-feel-to-pd-vanilla</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 15:27:37 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/13810.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 29 Jan 2022 19:28:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to A GUI plugin adding Max hotkeys and UI feel to Pd vanilla on Sat, 29 Jan 2022 19:28:46 GMT]]></title><description><![CDATA[<p>Get it here: <a href="https://github.com/RVirmoors/maxhotkey-pd" rel="nofollow">https://github.com/RVirmoors/maxhotkey-pd</a></p>
<p>I'm mainly focused on the basic mechanic (probably 90% of my patching) of pressing <code>N</code> to make an object, having it stick to the canvas and hide the cursor while you type in the name, and then pressing <code>Return</code> to apply it.</p>
<p>I assume most people here are already used to the existing Pd workflow, but for people like me who are attempting for the millionth time to come over from Max, this might come in handy.</p>
<p>Another great thing to have would be autocomplete. I tried it with <a href="https://github.com/HenriAugusto/completion-plugin" rel="nofollow">completion-plugin</a>, and with a <a href="https://github.com/RVirmoors/maxhotkey-pd#known-issues" rel="nofollow">small adjustment</a> they seem to play well together. The next step would be to have autocompletion trigger automatically in a Max-like way... I hope I can find time to look into that.</p>
<p>I also just tested the plugin with Seb's <a href="https://github.com/sebshader/pdnext" rel="nofollow">pdnext</a>, and it seems to work just fine, yay!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13810/a-gui-plugin-adding-max-hotkeys-and-ui-feel-to-pd-vanilla</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13810/a-gui-plugin-adding-max-hotkeys-and-ui-feel-to-pd-vanilla</guid><dc:creator><![CDATA[rvirmoors]]></dc:creator><pubDate>Sat, 29 Jan 2022 19:28:46 GMT</pubDate></item><item><title><![CDATA[Reply to A GUI plugin adding Max hotkeys and UI feel to Pd vanilla on Sat, 29 Jan 2022 21:13:00 GMT]]></title><description><![CDATA[<p>Great.<br />
I  love the CMD + click to switch from edit/run mode and Alt for help.<br />
I have to desactivate all other key shortcuts with pd-next to be able to type on boxes with:</p>
<pre><code>  set keybindings \
         &quot;&quot;
</code></pre>
<p>But I guess I have a completion-plugin  or other plugin conflict <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";)" alt=";)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13810/a-gui-plugin-adding-max-hotkeys-and-ui-feel-to-pd-vanilla/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13810/a-gui-plugin-adding-max-hotkeys-and-ui-feel-to-pd-vanilla/2</guid><dc:creator><![CDATA[60hz]]></dc:creator><pubDate>Sat, 29 Jan 2022 21:13:00 GMT</pubDate></item><item><title><![CDATA[Reply to A GUI plugin adding Max hotkeys and UI feel to Pd vanilla on Sat, 29 Jan 2022 22:39:43 GMT]]></title><description><![CDATA[<p>yeah with completion-plugin i submitted an issue and hopefully that will get fixed. Did you try the fix I linked to above?</p>
<blockquote>
<p>add</p>
<pre><code class="lang-tcl">pdtk_text_editing_old $mytoplevel $tag $editing
</code></pre>
<p>at the end of the <code>pdtk_text_editing</code> proc in <a href="https://github.com/HenriAugusto/completion-plugin/blob/master/completion-plugin.tcl" rel="nofollow">completion-plugin.tcl</a> (line 691)</p>
</blockquote>
<p>i haven't tried other plugins but yeah, those might raise other conflicts... I'm very new at Tcl so my code is pretty hacky; any suggestions for improvement are welcome <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13810/a-gui-plugin-adding-max-hotkeys-and-ui-feel-to-pd-vanilla/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13810/a-gui-plugin-adding-max-hotkeys-and-ui-feel-to-pd-vanilla/3</guid><dc:creator><![CDATA[rvirmoors]]></dc:creator><pubDate>Sat, 29 Jan 2022 22:39:43 GMT</pubDate></item><item><title><![CDATA[Reply to A GUI plugin adding Max hotkeys and UI feel to Pd vanilla on Thu, 03 Feb 2022 11:49:13 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/rvirmoors">@rvirmoors</a> In the if statement for the return key if you replace;<br />
<code>menu_send %W deselectall;</code>  with;<br />
<code>::pd_bindings::canvas_cycle %W 1 %K %A 0 %k; ::pd_bindings::canvas_cycle %W -1 %K %A 1 %k;</code><br />
This will keep the object selected when you hit return so the autopatching will still work, next object placed will automatically have its left inlet connected to that objects left outlet. Saves a fair amount of patching time. Escape can be used to apply the object without keeping it selected for those time you want the old behavior. A bit hacky and there may be a better way to do this.</p>
<p>Also for the other single key objects if you put two spaces after the object name instead of one this will place the cursor where you want it so no need to press space every object you want to give an argument. I just give all objects a double space as a rule, pd will just delete them for you if you do not enter an argument. The number keys are the exception, each number key just calls itself, so <code>1 {1 } \</code> and so on, these get a single space, this means you can just type 1-2-3-enter and you have a floatbox preset to 123 nice and easy.</p>
<p>32 edits later, I think I caught all the typos.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13810/a-gui-plugin-adding-max-hotkeys-and-ui-feel-to-pd-vanilla/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13810/a-gui-plugin-adding-max-hotkeys-and-ui-feel-to-pd-vanilla/4</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Thu, 03 Feb 2022 11:49:13 GMT</pubDate></item><item><title><![CDATA[Reply to A GUI plugin adding Max hotkeys and UI feel to Pd vanilla on Fri, 04 Feb 2022 16:17:24 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/oid">@oid</a> awesome, thanks!</p>
<p>i'm not a big fan (yet?) of autopatching... I'd prefer new objects to appear right under my cursor when pressing N, instead of under what's currently selected. But I can see why people like and use this feature, and keeping a new object selected is Max-like, so I included your suggestion.</p>
<p>(maybe a nice compromise would be for the new object to be connected to the selected one, just spawned at the mouse position? I'm not sure this can be done using just tcl...)</p>
<p>i also added the extra space to the object names. I'd thought of this too, not sure why i hadn't put it in.</p>
<p>the number keys idea is neat but i'm not convinced it needs to be included as default... Which just led me to create a <a href="https://github.com/RVirmoors/maxhotkey-pd/blob/main/maxhotkey.cfg" rel="nofollow">maxhotkey.cfg</a> file where you can easily override the defaults.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13810/a-gui-plugin-adding-max-hotkeys-and-ui-feel-to-pd-vanilla/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13810/a-gui-plugin-adding-max-hotkeys-and-ui-feel-to-pd-vanilla/5</guid><dc:creator><![CDATA[rvirmoors]]></dc:creator><pubDate>Fri, 04 Feb 2022 16:17:24 GMT</pubDate></item><item><title><![CDATA[Reply to A GUI plugin adding Max hotkeys and UI feel to Pd vanilla on Fri, 04 Feb 2022 22:46:14 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/rvirmoors">@rvirmoors</a> Should be possible to have the objects show up under the cursor and have autopatching from tcl. The simple brute force method is to just use tcl to move the object with either the mouse or the logic for the arrowkey movement. Mouse is iffy, not sure if we can warp the curson position with tcl, but I suspect we can, so save current cursor position, warp cursor to previous saved position plus an offset for the default autoplaced object (or just find where the xy is stored for the current selection in the tcl), send mouse button-1 down, warp to saved position, send mouse button up. This has the issue that the exact offset needed is somewhat dependent on font size, assuming the coordinates of the current selected object can not be found in the tcl somewhere, but a reasonable value should be able to be found that will work for most everyone. The arrow key way would avoid that but I have yet to find where the arrow keys are dealt with and these may just go right to pd so a loop providing the correct number of shift+lefts/rights/ups/downs would be needed, but the logic for the arrow keys might be in the tcl somewhere, just lack any easy/obvious to grep for terms.</p>
<p>You could also make autopatching user switchable on the fly. Just bind an unused key combination to toggle it, so bind ctrl-shift-y or the like to toggle a variable between 1 and 0, use an if statement to determine what return does.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13810/a-gui-plugin-adding-max-hotkeys-and-ui-feel-to-pd-vanilla/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13810/a-gui-plugin-adding-max-hotkeys-and-ui-feel-to-pd-vanilla/6</guid><dc:creator><![CDATA[oid]]></dc:creator><pubDate>Fri, 04 Feb 2022 22:46:14 GMT</pubDate></item><item><title><![CDATA[Reply to A GUI plugin adding Max hotkeys and UI feel to Pd vanilla on Sat, 05 Feb 2022 03:02:18 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/oid">@oid</a> in tcl/tk you can get the font height in pixels using</p>
<pre><code>set foo [list $::font_family -$fsize $::font_weight]
set height [font metrics $foo -linespace]
</code></pre>
<p>(where <code>$fsize</code> is the size)<br />
edit: I see there's also the <code>::font_metrics</code>, <code>::font_zoom2_metrics</code>, <code>::font_measured</code>, and <code>::font_zoom2_measured</code> arrays..</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13810/a-gui-plugin-adding-max-hotkeys-and-ui-feel-to-pd-vanilla/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13810/a-gui-plugin-adding-max-hotkeys-and-ui-feel-to-pd-vanilla/7</guid><dc:creator><![CDATA[seb-harmonik.ar]]></dc:creator><pubDate>Sat, 05 Feb 2022 03:02:18 GMT</pubDate></item><item><title><![CDATA[Reply to A GUI plugin adding Max hotkeys and UI feel to Pd vanilla on Tue, 12 Apr 2022 22:30:30 GMT]]></title><description><![CDATA[<p>just added the <code>Ctrl+I</code> shortcut to open the inspector (Properties) popup window</p>
<p>haha this was such a pain to figure out in Tcl... every time I add something it feels like learning it almost from scratch.</p>
<p>btw this shortcut is actually also a TODO in Pd's <code>pd-gui.tcl</code>, hmm...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13810/a-gui-plugin-adding-max-hotkeys-and-ui-feel-to-pd-vanilla/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13810/a-gui-plugin-adding-max-hotkeys-and-ui-feel-to-pd-vanilla/8</guid><dc:creator><![CDATA[rvirmoors]]></dc:creator><pubDate>Tue, 12 Apr 2022 22:30:30 GMT</pubDate></item></channel></rss>