<?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[Combine selected points into one point]]></title><description><![CDATA[<p dir="auto">I would love to select two or more points and say 'combine points into one point'. This function would calculate the average center of selected points + calculate average bcps for that one point. Would be handy for cleaning paths, for example after auto-tracing. In the next update maybe?</p>
]]></description><link>https://forum.robofont.com/topic/124/combine-selected-points-into-one-point</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 14:12:11 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/124.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 May 2012 06:43:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Combine selected points into one point on Wed, 03 Jan 2018 22:14:04 GMT]]></title><description><![CDATA[<p dir="auto">I would love to select two or more points and say 'combine points into one point'. This function would calculate the average center of selected points + calculate average bcps for that one point. Would be handy for cleaning paths, for example after auto-tracing. In the next update maybe?</p>
]]></description><link>https://forum.robofont.com/post/124</link><guid isPermaLink="true">https://forum.robofont.com/post/124</guid><dc:creator><![CDATA[sami]]></dc:creator><pubDate>Wed, 03 Jan 2018 22:14:04 GMT</pubDate></item><item><title><![CDATA[Reply to Combine selected points into one point on Fri, 11 May 2012 07:16:37 GMT]]></title><description><![CDATA[<p dir="auto">That would be an excellent extension :)</p>
]]></description><link>https://forum.robofont.com/post/703</link><guid isPermaLink="true">https://forum.robofont.com/post/703</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Fri, 11 May 2012 07:16:37 GMT</pubDate></item><item><title><![CDATA[Reply to Combine selected points into one point on Sun, 13 May 2012 11:33:42 GMT]]></title><description><![CDATA[<p dir="auto">It would also be an excellent native function…</p>
]]></description><link>https://forum.robofont.com/post/705</link><guid isPermaLink="true">https://forum.robofont.com/post/705</guid><dc:creator><![CDATA[bas]]></dc:creator><pubDate>Sun, 13 May 2012 11:33:42 GMT</pubDate></item><item><title><![CDATA[Reply to Combine selected points into one point on Tue, 29 May 2012 13:00:24 GMT]]></title><description><![CDATA[<p dir="auto">I've written an extension that does this.</p>
<p dir="auto"><a href="https://github.com/charlesmchen/robofont-extensions-and-scripts" rel="nofollow">https://github.com/charlesmchen/robofont-extensions-and-scripts</a></p>
<p dir="auto">If its not what you had in mind, or if you have any other ideas for extensions, let me know.</p>
<p dir="auto">I'm not yet satisfied with how it updates control points adjacent to "merged" points.</p>
]]></description><link>https://forum.robofont.com/post/708</link><guid isPermaLink="true">https://forum.robofont.com/post/708</guid><dc:creator><![CDATA[charlesmchen]]></dc:creator><pubDate>Tue, 29 May 2012 13:00:24 GMT</pubDate></item><item><title><![CDATA[Reply to Combine selected points into one point on Tue, 29 May 2012 16:38:02 GMT]]></title><description><![CDATA[<p dir="auto">He</p>
<p dir="auto">cool!</p>
<p dir="auto">Move your scripts that have callbacks from the menu to the root folder.<br />
From there you can import everything inside a RoboFont extension.</p>
]]></description><link>https://forum.robofont.com/post/711</link><guid isPermaLink="true">https://forum.robofont.com/post/711</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Tue, 29 May 2012 16:38:02 GMT</pubDate></item><item><title><![CDATA[Reply to Combine selected points into one point on Tue, 29 May 2012 17:05:15 GMT]]></title><description><![CDATA[<p dir="auto">Hmm, I'm not sure I understand.</p>
<p dir="auto">You're saying that any script that corresponds to a menu item needs to be in the root folder (ie. the "script root" in the Extension Builder)?</p>
]]></description><link>https://forum.robofont.com/post/713</link><guid isPermaLink="true">https://forum.robofont.com/post/713</guid><dc:creator><![CDATA[charlesmchen]]></dc:creator><pubDate>Tue, 29 May 2012 17:05:15 GMT</pubDate></item><item><title><![CDATA[Reply to Combine selected points into one point on Wed, 03 Jan 2018 22:08:47 GMT]]></title><description><![CDATA[<p dir="auto">no, but you will have access to other python scripts and modules if they are on the same level or deeper<br />
(this isn't a limitation of RoboFont, this is default python behavior if the module isn't added to the site packages or <code>sys.path</code>)</p>
<pre><code class="language-text">scripting Root
- test.py          # test can import testFolder and all sub py files  
- testFolder                 
  - __init__.py
  - otherFile.py   # otherFile can not import test.py or otherTestFolder
- otherTestFolder
  - __init__.py
</code></pre>
<p dir="auto">hope this makes sense</p>
]]></description><link>https://forum.robofont.com/post/714</link><guid isPermaLink="true">https://forum.robofont.com/post/714</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Wed, 03 Jan 2018 22:08:47 GMT</pubDate></item><item><title><![CDATA[Reply to Combine selected points into one point on Wed, 03 Jan 2018 22:09:11 GMT]]></title><description><![CDATA[<p dir="auto">Ah, I see what you mean.</p>
<p dir="auto">Alternately, RoboFont could add the root folder of the extension to the python path when it invokes a script from that extension.</p>
<p dir="auto">I'm not sure how you're invoking extension scripts in Robofont...</p>
<p dir="auto">Anyhow, I've reorganized the extension per your suggestion.</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.robofont.com/post/715</link><guid isPermaLink="true">https://forum.robofont.com/post/715</guid><dc:creator><![CDATA[charlesmchen]]></dc:creator><pubDate>Wed, 03 Jan 2018 22:09:11 GMT</pubDate></item><item><title><![CDATA[Reply to Combine selected points into one point on Wed, 03 Jan 2018 22:09:40 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Alternately, RoboFont could add the root folder of the extension to the python path when it invokes a script from that extension.<br />
I’m not sure how you’re invoking extension scripts in Robofont…</p>
</blockquote>
<p dir="auto">mm, I think this will be a mess after a while.</p>
<p dir="auto">It's already super easy to add a path to <code>sys.path</code> :)</p>
]]></description><link>https://forum.robofont.com/post/716</link><guid isPermaLink="true">https://forum.robofont.com/post/716</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Wed, 03 Jan 2018 22:09:40 GMT</pubDate></item><item><title><![CDATA[Reply to Combine selected points into one point on Wed, 30 May 2012 16:17:43 GMT]]></title><description><![CDATA[<p dir="auto">Yes, you're right.</p>
]]></description><link>https://forum.robofont.com/post/717</link><guid isPermaLink="true">https://forum.robofont.com/post/717</guid><dc:creator><![CDATA[charlesmchen]]></dc:creator><pubDate>Wed, 30 May 2012 16:17:43 GMT</pubDate></item><item><title><![CDATA[Reply to Combine selected points into one point on Wed, 30 May 2012 17:32:03 GMT]]></title><description><![CDATA[<p dir="auto">I moved this extension to <a href="http://charlesmchen.github.com/typefacet-robofont/" rel="nofollow">http://charlesmchen.github.com/typefacet-robofont/</a></p>
]]></description><link>https://forum.robofont.com/post/722</link><guid isPermaLink="true">https://forum.robofont.com/post/722</guid><dc:creator><![CDATA[charlesmchen]]></dc:creator><pubDate>Wed, 30 May 2012 17:32:03 GMT</pubDate></item><item><title><![CDATA[Reply to Combine selected points into one point on Wed, 03 Jan 2018 22:10:25 GMT]]></title><description><![CDATA[<p dir="auto">a progress bar example:</p>
<pre><code class="language-python">from defconAppKit.windows.progressWindow import ProgressWindow

# CurrentFontWindow is only available only in RoboFont 1.3
from mojo.UI import CurrentFontWindow

import time

progress = ProgressWindow("my progress")
time.sleep(2)
progress.close()

## attach as sheet to a window
progress = ProgressWindow("my progress", parentWindow=CurrentFontWindow().window())
time.sleep(2)
progress.update("action....")
time.sleep(2)
progress.close()

## with tickcount
count = 20
progress = ProgressWindow("my progress", tickCount=count)

for i in range(count):
    time.sleep(.1)
    progress.update("action....%s" %i)
    
progress.close()
</code></pre>
]]></description><link>https://forum.robofont.com/post/723</link><guid isPermaLink="true">https://forum.robofont.com/post/723</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Wed, 03 Jan 2018 22:10:25 GMT</pubDate></item><item><title><![CDATA[Reply to Combine selected points into one point on Wed, 30 May 2012 18:10:19 GMT]]></title><description><![CDATA[<p dir="auto">cool, thanks.</p>
]]></description><link>https://forum.robofont.com/post/724</link><guid isPermaLink="true">https://forum.robofont.com/post/724</guid><dc:creator><![CDATA[charlesmchen]]></dc:creator><pubDate>Wed, 30 May 2012 18:10:19 GMT</pubDate></item><item><title><![CDATA[Reply to Combine selected points into one point on Wed, 03 Jan 2018 22:11:46 GMT]]></title><description><![CDATA[<p dir="auto">Hmm, that can't be right.</p>
<pre><code class="language-python">for i in range(count):
    time.sleep(.1)
    progress.update("action....%s" %i)
</code></pre>
<p dir="auto">You're formatting a string with an int but using the string format descriptor: <code>%s</code><br />
Also, shouldn't <code>progress.update()</code> take an int argument?</p>
<p dir="auto">Lastly,</p>
<pre><code class="language-python">from mojo.UI import CurrentFontWindow
</code></pre>
<p dir="auto">Yields:</p>
<pre><code class="language-console">importError: cannot import name CurrentFontWindow
</code></pre>
<p dir="auto">in RoboFont 1.2</p>
]]></description><link>https://forum.robofont.com/post/725</link><guid isPermaLink="true">https://forum.robofont.com/post/725</guid><dc:creator><![CDATA[charlesmchen]]></dc:creator><pubDate>Wed, 03 Jan 2018 22:11:46 GMT</pubDate></item><item><title><![CDATA[Reply to Combine selected points into one point on Wed, 03 Jan 2018 22:12:05 GMT]]></title><description><![CDATA[<p dir="auto">oho, just saw this:</p>
<blockquote>
<p dir="auto">CurrentFontWindow is only available only in RoboFont 1.3</p>
</blockquote>
]]></description><link>https://forum.robofont.com/post/726</link><guid isPermaLink="true">https://forum.robofont.com/post/726</guid><dc:creator><![CDATA[charlesmchen]]></dc:creator><pubDate>Wed, 03 Jan 2018 22:12:05 GMT</pubDate></item><item><title><![CDATA[Reply to Combine selected points into one point on Wed, 03 Jan 2018 22:12:29 GMT]]></title><description><![CDATA[<p dir="auto">oh, I get it.  You call <code>progress.update()</code> count times: that's why there's not int argument.</p>
]]></description><link>https://forum.robofont.com/post/727</link><guid isPermaLink="true">https://forum.robofont.com/post/727</guid><dc:creator><![CDATA[charlesmchen]]></dc:creator><pubDate>Wed, 03 Jan 2018 22:12:29 GMT</pubDate></item><item><title><![CDATA[Reply to Combine selected points into one point on Wed, 03 Jan 2018 22:12:57 GMT]]></title><description><![CDATA[<p dir="auto">Hmm, the <code>help()</code> built-in function doesn't work in the RoboFont scripting window.</p>
<pre><code class="language-python">from defconAppKit.windows.progressWindow import ProgressWindow
print dir(ProgressWindow)
help(ProgressWindow.update)
</code></pre>
<p dir="auto">Yields:</p>
<pre><code class="language-console">NameError: name 'help' is not defined
</code></pre>
]]></description><link>https://forum.robofont.com/post/728</link><guid isPermaLink="true">https://forum.robofont.com/post/728</guid><dc:creator><![CDATA[charlesmchen]]></dc:creator><pubDate>Wed, 03 Jan 2018 22:12:57 GMT</pubDate></item><item><title><![CDATA[Reply to Combine selected points into one point on Wed, 03 Jan 2018 22:13:42 GMT]]></title><description><![CDATA[<p dir="auto">yeah, <code>help</code> is great, didn't know it was available. This will be added in the next version.</p>
<p dir="auto">thanks</p>
<p dir="auto">ps: a small workaround:</p>
<pre><code class="language-python">from defconAppKit.windows.progressWindow import ProgressWindow
import pydoc
## this is actually happening in the built-in 'help'
pydoc.help(ProgressWindow.update)
</code></pre>
]]></description><link>https://forum.robofont.com/post/734</link><guid isPermaLink="true">https://forum.robofont.com/post/734</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Wed, 03 Jan 2018 22:13:42 GMT</pubDate></item></channel></rss>