<?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[Contour.index raises AttributeError]]></title><description><![CDATA[<p dir="auto">I'm trying to delete a contour (well, some of them) and I get an <code>AttributeError</code> where (I think) shouldn't as it's robofab's (and works in FL this way).</p>
<pre><code class="language-python">g = CurrentGlyph()
for con in g:
    print g.index
</code></pre>
<p dir="auto">Thanks you!</p>
]]></description><link>https://forum.robofont.com/topic/125/contour-index-raises-attributeerror</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 09:28:38 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/125.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 May 2012 06:57:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Contour.index raises AttributeError on Tue, 02 Jan 2018 15:30:41 GMT]]></title><description><![CDATA[<p dir="auto">I'm trying to delete a contour (well, some of them) and I get an <code>AttributeError</code> where (I think) shouldn't as it's robofab's (and works in FL this way).</p>
<pre><code class="language-python">g = CurrentGlyph()
for con in g:
    print g.index
</code></pre>
<p dir="auto">Thanks you!</p>
]]></description><link>https://forum.robofont.com/post/125</link><guid isPermaLink="true">https://forum.robofont.com/post/125</guid><dc:creator><![CDATA[joanca]]></dc:creator><pubDate>Tue, 02 Jan 2018 15:30:41 GMT</pubDate></item><item><title><![CDATA[Reply to Contour.index raises AttributeError on Tue, 02 Jan 2018 15:31:15 GMT]]></title><description><![CDATA[<p dir="auto">Why do you need the index of the contour?</p>
<p dir="auto">use:</p>
<pre><code class="language-python">glyph = CurrentGlyph()
## dont remove and iterate over the same glyph object
## so create a temp list of contours
contoursToRemove = list(glyph)

for contour in contoursToRemove:
    glyph.removeContour(contour)
</code></pre>
]]></description><link>https://forum.robofont.com/post/702</link><guid isPermaLink="true">https://forum.robofont.com/post/702</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Tue, 02 Jan 2018 15:31:15 GMT</pubDate></item><item><title><![CDATA[Reply to Contour.index raises AttributeError on Tue, 02 Jan 2018 15:32:06 GMT]]></title><description><![CDATA[<p dir="auto">Well, in this case I don't need it (thought shouldn't it work?)<br />
I didn't find <code>glyph.removeCountour()</code> in robofab's documentation :[</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.robofont.com/post/704</link><guid isPermaLink="true">https://forum.robofont.com/post/704</guid><dc:creator><![CDATA[joanca]]></dc:creator><pubDate>Tue, 02 Jan 2018 15:32:06 GMT</pubDate></item></channel></rss>