<?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[Make EditingTool select only certain objects]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm creating a tool for mark positioning and I want to only select anchors while the tool is active. Sometimes points and anchors overlap in position. I can make it based on <code>BaseEventTool</code> but then I have to create more methods to select and move the anchors which already exist in <code>EditingTool</code>. It would be cool if <code>EditingTool</code> only accepted anchors for selection so I don't accidentally select other objects. This way I don't have to reinvent methods that already exist.</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.robofont.com/topic/763/make-editingtool-select-only-certain-objects</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Mar 2026 02:41:41 GMT</lastBuildDate><atom:link href="https://forum.robofont.com/topic/763.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Dec 2019 14:04:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Make EditingTool select only certain objects on Fri, 13 Dec 2019 14:04:43 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm creating a tool for mark positioning and I want to only select anchors while the tool is active. Sometimes points and anchors overlap in position. I can make it based on <code>BaseEventTool</code> but then I have to create more methods to select and move the anchors which already exist in <code>EditingTool</code>. It would be cool if <code>EditingTool</code> only accepted anchors for selection so I don't accidentally select other objects. This way I don't have to reinvent methods that already exist.</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.robofont.com/post/2892</link><guid isPermaLink="true">https://forum.robofont.com/post/2892</guid><dc:creator><![CDATA[bahman]]></dc:creator><pubDate>Fri, 13 Dec 2019 14:04:43 GMT</pubDate></item><item><title><![CDATA[Reply to Make EditingTool select only certain objects on Mon, 16 Dec 2019 19:19:04 GMT]]></title><description><![CDATA[<p dir="auto">At the end, I made all the methods from scratch. After publishing I will post the link here.</p>
]]></description><link>https://forum.robofont.com/post/2906</link><guid isPermaLink="true">https://forum.robofont.com/post/2906</guid><dc:creator><![CDATA[bahman]]></dc:creator><pubDate>Mon, 16 Dec 2019 19:19:04 GMT</pubDate></item><item><title><![CDATA[Reply to Make EditingTool select only certain objects on Mon, 16 Dec 2019 20:40:56 GMT]]></title><description><![CDATA[<p dir="auto">This could idd be handy to have flags in a the <code>EditingTool</code>  to allow to select/edit specific objects, like on curves, off curves, anchors, guidelines, image, components...</p>
]]></description><link>https://forum.robofont.com/post/2909</link><guid isPermaLink="true">https://forum.robofont.com/post/2909</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Mon, 16 Dec 2019 20:40:56 GMT</pubDate></item><item><title><![CDATA[Reply to Make EditingTool select only certain objects on Wed, 15 Jan 2020 15:52:48 GMT]]></title><description><![CDATA[<p dir="auto">In the next beta and release an subclass of an EditingTool could overwrite:</p>
<pre><code>from mojo.events import EditingTool


class MyTool(EditingTool):

    def canSelectAnchors(self):
        return True

    def canSelectImage(self):
        return False

    def canSelectComponents(self):
        return False

    def canSelectGuidelines(self):
        return False

    def canSelectPoints(self):
        return False
    
    def canSelectSidebearing(self):
        return False
</code></pre>
]]></description><link>https://forum.robofont.com/post/2998</link><guid isPermaLink="true">https://forum.robofont.com/post/2998</guid><dc:creator><![CDATA[frederik]]></dc:creator><pubDate>Wed, 15 Jan 2020 15:52:48 GMT</pubDate></item><item><title><![CDATA[Reply to Make EditingTool select only certain objects on Wed, 15 Jan 2020 17:37:12 GMT]]></title><description><![CDATA[<p dir="auto">Thank you very much Frederik, this is very useful!</p>
]]></description><link>https://forum.robofont.com/post/3000</link><guid isPermaLink="true">https://forum.robofont.com/post/3000</guid><dc:creator><![CDATA[bahman]]></dc:creator><pubDate>Wed, 15 Jan 2020 17:37:12 GMT</pubDate></item></channel></rss>