<?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[Is there a Metrics Machine extension API?]]></title><description><![CDATA[<p dir="auto">I'm hoping to build a secondary proofing view that will relate to work done in the Metrics Machine extension.</p>
<p dir="auto">Specifically, I am hoping to take the currently-displayed string from MM and show that in a secondary view, probably processed through Drawbot.</p>
<p dir="auto">But, this leaves me stuck at step 1: is there a way to access the currently-displayed string in MM?</p>
<p dir="auto">I'm imagining some kind of approach like the following (though, this is a totally wild stab, based slightly on <a href="https://robofont.com/documentation/building-tools/toolspace/mojo/space-center/" rel="nofollow">scripting with the Space Center</a>):</p>
<pre><code class="language-python">&gt;&gt;&gt; from mojo.UI import CurrentMetricsMachine
&gt;&gt;&gt; kernText = CurrentMetricsMachine().getRaw()
&gt;&gt;&gt; print(kernText)

'HHATHOHOO'
</code></pre>
<p dir="auto">Is there any way of doing this or anything similar? Is there anywhere I might read more about scripts involving Metrics Machine?</p>
<p dir="auto">Thanks for any leads!</p>
]]></description><link>https://forum.robofont.com/topic/697/is-there-a-metrics-machine-extension-api</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 22:23:00 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/697.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Sep 2019 13:42:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is there a Metrics Machine extension API? on Tue, 17 Sep 2019 17:37:05 GMT]]></title><description><![CDATA[<p dir="auto">I'm hoping to build a secondary proofing view that will relate to work done in the Metrics Machine extension.</p>
<p dir="auto">Specifically, I am hoping to take the currently-displayed string from MM and show that in a secondary view, probably processed through Drawbot.</p>
<p dir="auto">But, this leaves me stuck at step 1: is there a way to access the currently-displayed string in MM?</p>
<p dir="auto">I'm imagining some kind of approach like the following (though, this is a totally wild stab, based slightly on <a href="https://robofont.com/documentation/building-tools/toolspace/mojo/space-center/" rel="nofollow">scripting with the Space Center</a>):</p>
<pre><code class="language-python">&gt;&gt;&gt; from mojo.UI import CurrentMetricsMachine
&gt;&gt;&gt; kernText = CurrentMetricsMachine().getRaw()
&gt;&gt;&gt; print(kernText)

'HHATHOHOO'
</code></pre>
<p dir="auto">Is there any way of doing this or anything similar? Is there anywhere I might read more about scripts involving Metrics Machine?</p>
<p dir="auto">Thanks for any leads!</p>
]]></description><link>https://forum.robofont.com/post/2631</link><guid isPermaLink="true">https://forum.robofont.com/post/2631</guid><dc:creator><![CDATA[ArrowType]]></dc:creator><pubDate>Tue, 17 Sep 2019 17:37:05 GMT</pubDate></item><item><title><![CDATA[Reply to Is there a Metrics Machine extension API? on Tue, 17 Sep 2019 20:58:33 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Is there anywhere I might read more about scripts involving Metrics Machine?</p>
</blockquote>
<p dir="auto">The next version of the current extension will have a scripting API. We're going to release it very soon.</p>
]]></description><link>https://forum.robofont.com/post/2632</link><guid isPermaLink="true">https://forum.robofont.com/post/2632</guid><dc:creator><![CDATA[tal]]></dc:creator><pubDate>Tue, 17 Sep 2019 20:58:33 GMT</pubDate></item></channel></rss>