<?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[Adding a smart set via script doesn&#x27;t work]]></title><description><![CDATA[<p dir="auto">I'm trying to add a smart set and always get an error ... what am I doing wrong?</p>
<pre><code class="language-python">from mojo.UI import SmartSet, addSmartSet

s = SmartSet()
s.name = "Test"
s.query = u"Contours &gt; 0"
addSmartSet(s)
</code></pre>
<p dir="auto">The error is:</p>
<pre><code class="language-console">Traceback (most recent call last):
  File "", line 6, in 
  File "mojo/UI.pyc", line 360, in addSmartSet
  File "mojo/UI.pyc", line 390, in setSmartSets
RoboFontError: Smart Set needs a query
</code></pre>
]]></description><link>https://forum.robofont.com/topic/233/adding-a-smart-set-via-script-doesn-t-work</link><generator>RSS for Node</generator><lastBuildDate>Tue, 19 May 2026 01:14:39 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/233.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Feb 2013 13:57:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Adding a smart set via script doesn&#x27;t work on Mon, 01 Jan 2018 10:35:45 GMT]]></title><description><![CDATA[<p dir="auto">I'm trying to add a smart set and always get an error ... what am I doing wrong?</p>
<pre><code class="language-python">from mojo.UI import SmartSet, addSmartSet

s = SmartSet()
s.name = "Test"
s.query = u"Contours &gt; 0"
addSmartSet(s)
</code></pre>
<p dir="auto">The error is:</p>
<pre><code class="language-console">Traceback (most recent call last):
  File "", line 6, in 
  File "mojo/UI.pyc", line 360, in addSmartSet
  File "mojo/UI.pyc", line 390, in setSmartSets
RoboFontError: Smart Set needs a query
</code></pre>
]]></description><link>https://forum.robofont.com/post/233</link><guid isPermaLink="true">https://forum.robofont.com/post/233</guid><dc:creator><![CDATA[jens]]></dc:creator><pubDate>Mon, 01 Jan 2018 10:35:45 GMT</pubDate></item><item><title><![CDATA[Reply to Adding a smart set via script doesn&#x27;t work on Tue, 26 Feb 2013 14:08:32 GMT]]></title><description><![CDATA[<p dir="auto">ah, your aren't doing anything wrong<br />
bug in setting smart sets.</p>
<p dir="auto">setSmartSet seems not to be working nicely with groups....</p>
<p dir="auto">will be fixed in the next update, thanks</p>
]]></description><link>https://forum.robofont.com/post/984</link><guid isPermaLink="true">https://forum.robofont.com/post/984</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Tue, 26 Feb 2013 14:08:32 GMT</pubDate></item><item><title><![CDATA[Reply to Adding a smart set via script doesn&#x27;t work on Tue, 26 Feb 2013 16:02:20 GMT]]></title><description><![CDATA[<p dir="auto">Thanks!</p>
]]></description><link>https://forum.robofont.com/post/985</link><guid isPermaLink="true">https://forum.robofont.com/post/985</guid><dc:creator><![CDATA[jens]]></dc:creator><pubDate>Tue, 26 Feb 2013 16:02:20 GMT</pubDate></item></channel></rss>