<?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[Some commands leave behind &quot;ghost selection&quot;]]></title><description><![CDATA[<p dir="auto">I have a script that sends selected contours to another glyph (the meat is in <code>throwButtonCallback</code>).<br />
<a href="https://gist.github.com/ryanbugden/241f2fb00be28adbb2b3f7abe040c708" rel="nofollow">https://gist.github.com/ryanbugden/241f2fb00be28adbb2b3f7abe040c708</a></p>
<p dir="auto">When I run the script, it leaves some ghost "selection" behind until I click glyph view again. I've seen this happen before other times, but this is the most reproducible.</p>
<p dir="auto"><img src="/assets/uploads/files/1612301473003-52fa432c-4edd-4577-83da-a944e3f91bdd-image.png" alt="52fa432c-4edd-4577-83da-a944e3f91bdd-image.png" class="img-responsive img-markdown" /></p>
<p dir="auto">I've tried <code>g.selectedContours = ()</code> and <code>g.changed()</code> to no avail. Any reason this would be happening? Thanks!</p>
<p dir="auto">Version 3.5b (build 2007102200)<br />
SWM</p>
]]></description><link>https://forum.robofont.com/topic/921/some-commands-leave-behind-ghost-selection</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 20:38:39 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/921.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Feb 2021 21:32:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Some commands leave behind &quot;ghost selection&quot; on Tue, 02 Feb 2021 21:33:29 GMT]]></title><description><![CDATA[<p dir="auto">I have a script that sends selected contours to another glyph (the meat is in <code>throwButtonCallback</code>).<br />
<a href="https://gist.github.com/ryanbugden/241f2fb00be28adbb2b3f7abe040c708" rel="nofollow">https://gist.github.com/ryanbugden/241f2fb00be28adbb2b3f7abe040c708</a></p>
<p dir="auto">When I run the script, it leaves some ghost "selection" behind until I click glyph view again. I've seen this happen before other times, but this is the most reproducible.</p>
<p dir="auto"><img src="/assets/uploads/files/1612301473003-52fa432c-4edd-4577-83da-a944e3f91bdd-image.png" alt="52fa432c-4edd-4577-83da-a944e3f91bdd-image.png" class="img-responsive img-markdown" /></p>
<p dir="auto">I've tried <code>g.selectedContours = ()</code> and <code>g.changed()</code> to no avail. Any reason this would be happening? Thanks!</p>
<p dir="auto">Version 3.5b (build 2007102200)<br />
SWM</p>
]]></description><link>https://forum.robofont.com/post/3572</link><guid isPermaLink="true">https://forum.robofont.com/post/3572</guid><dc:creator><![CDATA[ryan]]></dc:creator><pubDate>Tue, 02 Feb 2021 21:33:29 GMT</pubDate></item><item><title><![CDATA[Reply to Some commands leave behind &quot;ghost selection&quot; on Tue, 02 Feb 2021 21:45:12 GMT]]></title><description><![CDATA[<p dir="auto">Ok I got some breadcrumbs from <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.robofont.com/uid/250">@frankrolf</a>, and found the solution:</p>
<p dir="auto">The contour needs to be deselected before it's removed.</p>
<pre><code>c.selected = False
g.removeContour(c)
g.changed()
</code></pre>
]]></description><link>https://forum.robofont.com/post/3573</link><guid isPermaLink="true">https://forum.robofont.com/post/3573</guid><dc:creator><![CDATA[ryan]]></dc:creator><pubDate>Tue, 02 Feb 2021 21:45:12 GMT</pubDate></item><item><title><![CDATA[Reply to Some commands leave behind &quot;ghost selection&quot; on Wed, 03 Feb 2021 20:05:10 GMT]]></title><description><![CDATA[<p dir="auto">noted down for future RF version to auto deselect on removeContour :)</p>
<p dir="auto">thanks!</p>
]]></description><link>https://forum.robofont.com/post/3575</link><guid isPermaLink="true">https://forum.robofont.com/post/3575</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Wed, 03 Feb 2021 20:05:10 GMT</pubDate></item></channel></rss>