<?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[How to Activate Polygon Selection in the Selection Filter]]></title><description><![CDATA[<p dir="auto">Hi, I was wondering if there is any code related to the selection filter in the c4d python SDK. Specifically, I would like to create a script that ensures only polygons are active in the selection filter.</p>
<p dir="auto">Could you provide any relevant information or examples that could help with this?</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1742320034598-195845c5-a7ea-4b99-9f87-547eaa61e28d-image.png" alt="195845c5-a7ea-4b99-9f87-547eaa61e28d-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>http://developers.maxon.net/forum/topic/16118/how-to-activate-polygon-selection-in-the-selection-filter</link><generator>RSS for Node</generator><lastBuildDate>Mon, 10 Aug 2026 16:44:27 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/16118.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Mar 2025 18:00:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to Activate Polygon Selection in the Selection Filter on Wed, 19 Mar 2025 04:41:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ferdinand">@<bdi>ferdinand</bdi></a> Your response was helpful. Thank you:)</p>
]]></description><link>http://developers.maxon.net/forum/post/76159</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/76159</guid><dc:creator><![CDATA[seora]]></dc:creator><pubDate>Wed, 19 Mar 2025 04:41:38 GMT</pubDate></item><item><title><![CDATA[Reply to How to Activate Polygon Selection in the Selection Filter on Tue, 18 Mar 2025 18:28:39 GMT]]></title><description><![CDATA[<p dir="auto">Hey <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/seora">@<bdi>seora</bdi></a>,</p>
<p dir="auto">Thank you for reaching out to us. Selection filter modes are just commands. Since there is no GUI involved with most of them, you can just 'record' your actions with the script log and then 'play' that back. Just to be clear, you can also invoke commands that entail GUI, e.g., the "Selector .." command, but you cannot automate that GUI (as GUIs are generally not exposed in the API).</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1742322393922-e27953f9-0c1c-4dce-a1bb-b4d643aebacf-image.png" alt="e27953f9-0c1c-4dce-a1bb-b4d643aebacf-image.png" class=" img-fluid img-markdown" /></p>
<pre><code class="language-py">"""A simple script that disables all selection filters, and then just enables the polygons filter.
"""
from typing import Optional
import c4d

doc: c4d.documents.BaseDocument # The active document
op: Optional[c4d.BaseObject] # The active object, None if unselected

def main() -&gt; None:
    """Called by Cinema 4D when the script is executed.
    """
    c4d.CallCommand(69000, 902) # Set selection filter to None.
    c4d.CallCommand(69000, 904) # Enable Polygon filter.

if __name__ == '__main__':
    main()
    c4d.EventAdd()
</code></pre>
<p dir="auto">Cheers,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum/post/76158</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/76158</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Tue, 18 Mar 2025 18:28:39 GMT</pubDate></item></channel></rss>