<?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[Generate instances from designspace or Superpolator]]></title><description><![CDATA[<p dir="auto">If you want to generate instances from a designspace or sp3 superpolator document, this tiny script can do it. If you select a sp3 it will convert to designspace first. Then it build the instances.</p>
<pre><code>import ufoProcessor
from mojo.UI import PutFile, GetFile
import os

"""
    Open a .sp3 or .designspace document and generate the instances.
    No reporting, no editing, no debugging. 
"""

def convertSuperpolatorToDesignSpace(path):
    # this a superpolator path and needs to be converted first
    newPathName = path.replace(".sp3", "_converted.designspace")
    newPathName = PutFile(message="Save this Superpolator document as Designspace:", fileName=os.path.basename(newPathName))
    if newPathName:
        ufoProcessor.sp3.sp3_to_designspace(path, newPathName)
    return newPathName

def generateInstances():
    path = GetFile("Open a Desingspace or Superpolator file to generate:", fileTypes=['sp3', 'designspace'])
    if path is None:
        return
    if os.path.splitext(path)[-1] == ".sp3":
        path = convertSuperpolatorToDesignSpace(path)
        if path is None:
            return
    ufoProcessor.build(path)
    
generateInstances()
print('done')
</code></pre>
]]></description><link>https://forum.robofont.com/topic/645/generate-instances-from-designspace-or-superpolator</link><generator>RSS for Node</generator><lastBuildDate>Fri, 05 Jun 2026 22:16:00 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/645.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 20 May 2019 20:19:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Generate instances from designspace or Superpolator on Mon, 20 May 2019 20:19:48 GMT]]></title><description><![CDATA[<p dir="auto">If you want to generate instances from a designspace or sp3 superpolator document, this tiny script can do it. If you select a sp3 it will convert to designspace first. Then it build the instances.</p>
<pre><code>import ufoProcessor
from mojo.UI import PutFile, GetFile
import os

"""
    Open a .sp3 or .designspace document and generate the instances.
    No reporting, no editing, no debugging. 
"""

def convertSuperpolatorToDesignSpace(path):
    # this a superpolator path and needs to be converted first
    newPathName = path.replace(".sp3", "_converted.designspace")
    newPathName = PutFile(message="Save this Superpolator document as Designspace:", fileName=os.path.basename(newPathName))
    if newPathName:
        ufoProcessor.sp3.sp3_to_designspace(path, newPathName)
    return newPathName

def generateInstances():
    path = GetFile("Open a Desingspace or Superpolator file to generate:", fileTypes=['sp3', 'designspace'])
    if path is None:
        return
    if os.path.splitext(path)[-1] == ".sp3":
        path = convertSuperpolatorToDesignSpace(path)
        if path is None:
            return
    ufoProcessor.build(path)
    
generateInstances()
print('done')
</code></pre>
]]></description><link>https://forum.robofont.com/post/2388</link><guid isPermaLink="true">https://forum.robofont.com/post/2388</guid><dc:creator><![CDATA[erik]]></dc:creator><pubDate>Mon, 20 May 2019 20:19:48 GMT</pubDate></item><item><title><![CDATA[Reply to Generate instances from designspace or Superpolator on Mon, 20 May 2019 20:55:26 GMT]]></title><description><![CDATA[<p dir="auto">super!!!!!!</p>
]]></description><link>https://forum.robofont.com/post/2390</link><guid isPermaLink="true">https://forum.robofont.com/post/2390</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Mon, 20 May 2019 20:55:26 GMT</pubDate></item></channel></rss>