<?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[InExclude detect &#x27;Remove All&#x27; context menu command]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<ol>
<li>With <a href="https://developers.maxon.net/docs/cpp/2023_2/group___m_s_g___d_e_s_c_r_i_p_t_i_o_n.html#gad510507882f984c46b3d8c733ff960ee" target="_blank" rel="noopener noreferrer nofollow ugc">MSG_DESCRIPTION_INEX_DELETED</a> we can detect deleting <a href="https://developers.maxon.net/docs/py/2023_2/modules/c4d/CustomDataType/InExcludeData/index.html?highlight=inexclude" target="_blank" rel="noopener noreferrer nofollow ugc">InExclude</a> item event. But in case choosing '<strong>Remove All</strong>' context menu command it is not working? How to fix that?<br />
Thank you!</li>
</ol>
<p dir="auto"><img src="https://developers.maxon.net/forum/assets/uploads/files/1675786688798-screenshot-2023-02-07-at-17.05.52.png" alt="Screenshot 2023-02-07 at 17.05.52.png" class=" img-fluid img-markdown" /></p>
]]></description><link>http://developers.maxon.net/forum/topic/14384/inexclude-detect-remove-all-context-menu-command</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 07:30:25 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/14384.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Feb 2023 16:34:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to InExclude detect &#x27;Remove All&#x27; context menu command on Wed, 08 Feb 2023 10:55:52 GMT]]></title><description><![CDATA[<p dir="auto">Thank you <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ferdinand">@<bdi>ferdinand</bdi></a> ! <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f44f.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--clap" style="height:23px;width:auto;vertical-align:middle" title="👏" alt="👏" /> Will chek it!</p>
]]></description><link>http://developers.maxon.net/forum/post/70735</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/70735</guid><dc:creator><![CDATA[mikeudin]]></dc:creator><pubDate>Wed, 08 Feb 2023 10:55:52 GMT</pubDate></item><item><title><![CDATA[Reply to InExclude detect &#x27;Remove All&#x27; context menu command on Tue, 07 Feb 2023 17:55:42 GMT]]></title><description><![CDATA[<p dir="auto">Hey <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/mikeudin">@<bdi>mikeudin</bdi></a>,</p>
<p dir="auto">Thank you for reaching out to us. Just as an FYI, I did delete the duplicate thread. There is no message for that. The best option is to listen for <code>c4d.MSG_DESCRIPTION_CHECKUPDATE</code> which will be emitted when you invoke the command.</p>
<p dir="auto">These are all the message IDs which are emitted when one invokes "Remove All":</p>
<pre><code>1028476
1041699
16
17  // MSG_DESCRIPTION_CHECKUPDATE
19
20
200000169
31
431000094
440000249
</code></pre>
<p dir="auto"><code>MSG_DESCRIPTION_CHECKUPDATE</code> is one of the better message IDs to piggy-back on here, but you could also pick another one. You can look up the message symbol for an integer most easily in <a href="https://developers.maxon.net/docs/py/2023_2/manuals/application_development/manual_message_system.html#plugin-messages" target="_blank" rel="noopener noreferrer nofollow ugc">Message Manual: Plugin Messages</a>.</p>
<p dir="auto">Cheers,<br />
Ferdinand</p>
<p dir="auto">Result:<br />
<img src="https://developers.maxon.net/forum/assets/uploads/files/1675792316148-message.gif" alt="message.gif" class=" img-fluid img-markdown" /></p>
<p dir="auto">I used this code:</p>
<pre><code>import c4d

op: c4d.BaseObject

def main() -&gt; c4d.BaseObject:
    return c4d.BaseObject(c4d.Onull)

def message(mid, data) -&gt; bool:
    if mid == c4d.MSG_DESCRIPTION_INEX_DELETED:
        print (mid, data)
    elif mid == c4d.MSG_DESCRIPTION_CHECKUPDATE:
        data = op[c4d.ID_USERDATA, 1]
        print (f"{data.GetObjectCount() =  }")
    else:
        # print ("ID/DATA", mid, data)
        pass
    return True
</code></pre>
]]></description><link>http://developers.maxon.net/forum/post/70732</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/70732</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Tue, 07 Feb 2023 17:55:42 GMT</pubDate></item></channel></rss>