<?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[New Condition Naming in Attribute Manager]]></title><description><![CDATA[<p dir="auto">Hello, I noticed there seemed to be a new 'name' feature with the Condition object.<br />
<img src="/forum/assets/uploads/files/1736893601496-screenshot-2025-01-14-at-4.23.52-pm.png" alt="Screenshot 2025-01-14 at 4.23.52 PM.png" class=" img-fluid img-markdown" /><br />
Is it possible to make use of it in a plugin?</p>
<p dir="auto">'Condition' is just the object's Name, but I can't figure out how 'distance' is set.</p>
<p dir="auto">Dan</p>
]]></description><link>http://developers.maxon.net/forum/topic/15926/new-condition-naming-in-attribute-manager</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 10:17:30 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/15926.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Jan 2025 22:30:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to New Condition Naming in Attribute Manager on Thu, 16 Jan 2025 18:04:13 GMT]]></title><description><![CDATA[<p dir="auto">Thank you so much! I couldn't ask for a more thorough response.</p>
<p dir="auto">Dan</p>
]]></description><link>http://developers.maxon.net/forum/post/75625</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/75625</guid><dc:creator><![CDATA[d_schmidt]]></dc:creator><pubDate>Thu, 16 Jan 2025 18:04:13 GMT</pubDate></item><item><title><![CDATA[Reply to New Condition Naming in Attribute Manager on Thu, 16 Jan 2025 09:58:19 GMT]]></title><description><![CDATA[<p dir="auto">Hey <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/d_schmidt">@<bdi>d_schmidt</bdi></a>,</p>
<p dir="auto">Thank you for reaching out to us. That feature has existed since Pyro was introduced but at the same time it is also an internal feature, i.e., a feature of which we publish the components, but which we do not support in public usage. To realize a node which supports name additions, you must register it with the flag <a href="https://developers.maxon.net/docs/cpp/2025_1_0/group___o_b_j_e_c_t.html#ga98de00eb9f8d508241929a011186077a" target="_blank" rel="noopener noreferrer nofollow ugc">OBJECT_CUSTOM_NAME_ADDITION</a>:</p>
<pre><code class="language-cpp">RegisterObjectPlugin(ID_MY_PLUGIN, GeLoadString(IDS_MY_PLUGIN), otherFlags | OBJECT_CUSTOM_NAME_ADDITION, MyPlugin::Alloc, "omyplugin"_s, nullptr, 0);
</code></pre>
<p dir="auto">Reading or writing to the custom name is then realised via the node message <a href="https://developers.maxon.net/docs/cpp/2025_1_0/group___m_s_g.html#ga242b92884ac17a90afc1d8666fd99393" target="_blank" rel="noopener noreferrer nofollow ugc">MSG_GETCUSTOM_NAME_ADDITION</a>. I am showing the write access in C++:</p>
<pre><code class="language-cpp">Bool MyPlugin::Message(GeListNode* node, Int32 type, void* data)
{
  ...
  switch (type)
  {
    // Something, for example the Object Manager, wants to know the addition to the name. The 
    // message data is just an empty string. The plugin should return the addition to the name.
    case MSG_GETCUSTOM_NAME_ADDITION:
    {
      *reinterpret_cast&lt;String*&gt;(data) = "Hello World"_s;
      break;
    }
    default:
      break;
  }
  ...
}
</code></pre>
<p dir="auto">And since nothing is safe from <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/m_adam">@<bdi>m_adam</bdi></a> <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--smile" style="height:23px;width:auto;vertical-align:middle" title=":D" alt="😄" /> , I just found out that he wrapped the reading part for Python (cannot see the writing part handled in Python). Since you cannot cast arbitrary data in Python, we must use a dictionary as the data container.</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1737021399706-13edcda9-b011-4ceb-9dd5-01cb8f93b781-image-resized.png" alt="13edcda9-b011-4ceb-9dd5-01cb8f93b781-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Cheers,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum/post/75615</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/75615</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Thu, 16 Jan 2025 09:58:19 GMT</pubDate></item></channel></rss>