<?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[detect the selection of an object]]></title><description><![CDATA[<p dir="auto">Hi all<br />
In a tooldata, is it possible to detect when the user selects an object in the tree structure?</p>
]]></description><link>http://developers.maxon.net/forum/topic/11369/detect-the-selection-of-an-object</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 16:46:38 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/11369.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 Feb 2019 09:38:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to detect the selection of an object on Thu, 20 Feb 2020 07:08:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/c4ds">@<bdi>C4DS</bdi></a><br />
Although a solution has not been given (as I wish to do), explanations have been provided. I have therefore considered it resolved.<br />
For IRL reasons, I could not do so. I will be able to get back to it, and if I find THE solution, I will post it <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>http://developers.maxon.net/forum/post/61619</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/61619</guid><dc:creator><![CDATA[Passion3D]]></dc:creator><pubDate>Thu, 20 Feb 2020 07:08:12 GMT</pubDate></item><item><title><![CDATA[Reply to detect the selection of an object on Sun, 16 Feb 2020 18:20:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/passion3d">@<bdi>Passion3D</bdi></a><br />
As this topic seems to be "solved" could the solution be provided, or discussed. It might be helpful to others. And I am definitely interested to hearing a solution in more details.</p>
]]></description><link>http://developers.maxon.net/forum/post/61536</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/61536</guid><dc:creator><![CDATA[C4DS]]></dc:creator><pubDate>Sun, 16 Feb 2020 18:20:49 GMT</pubDate></item><item><title><![CDATA[Reply to detect the selection of an object on Tue, 26 Feb 2019 07:08:09 GMT]]></title><description><![CDATA[<p dir="auto">Then, why don't you simply add a LinkListGui or a Link field? I had a similar plugin written, which allows me to build a list for snapping candidates. That works pretty well.</p>
]]></description><link>http://developers.maxon.net/forum/post/57461</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/57461</guid><dc:creator><![CDATA[mp5gosu]]></dc:creator><pubDate>Tue, 26 Feb 2019 07:08:09 GMT</pubDate></item><item><title><![CDATA[Reply to detect the selection of an object on Tue, 26 Feb 2019 05:18:19 GMT]]></title><description><![CDATA[<p dir="auto">ViewportSelect.PickObject(), this is what I use to select an object in the 3D View.</p>
<p dir="auto">What I'm trying to do seems complex and unreliable.<br />
I'll try to find another solution.<br />
As I said, when the scene is complex, it is difficult to reach a particular object, especially if it is small.</p>
]]></description><link>http://developers.maxon.net/forum/post/57460</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/57460</guid><dc:creator><![CDATA[Passion3D]]></dc:creator><pubDate>Tue, 26 Feb 2019 05:18:19 GMT</pubDate></item><item><title><![CDATA[Reply to detect the selection of an object on Mon, 25 Feb 2019 21:49:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/passion3d">@<bdi>passion3d</bdi></a> said in <a href="https://developers.maxon.net/forum/post/57453" target="_blank" rel="noopener noreferrer nofollow ugc">detect the selection of an object</a>:</p>
<blockquote>
<p dir="auto">It's from R19 only. It will remove OnFloor compatibility from R13 to R18 <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
</blockquote>
<p dir="auto">If I'm not mistaken, in prior versions it must have been ViewportSelect.PickObject().</p>
<p dir="auto">C4DS approach sounds a bit more elegant, yet hacky and thus probably error-prone. I'd go for the more robust solution. Even if that means a lack in comfort.</p>
]]></description><link>http://developers.maxon.net/forum/post/57458</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/57458</guid><dc:creator><![CDATA[mp5gosu]]></dc:creator><pubDate>Mon, 25 Feb 2019 21:49:02 GMT</pubDate></item><item><title><![CDATA[Reply to detect the selection of an object on Mon, 25 Feb 2019 20:49:48 GMT]]></title><description><![CDATA[<p dir="auto">I have been in need of something similar as well. And if I remember correctly it has been discussed a few years ago.<br />
Reason is that a ToolData or DescriptionToolData might need to initialize some stuff depending the currently active object. When the user selects a different object in the ObjectManager, the ToolData might need to reinitialize some stuff.</p>
<p dir="auto">The solution proposed in the past was to use a MessageData and listen to EVMSG_CHANGE to check if a different object has been selected using the object's "unique" id and then trigger the ToolData by sending a SpecialEvent ... or something.</p>
<p dir="auto">It is quite a complex implementation that seems to work, but probably is very error prone.<br />
I wish we would have had some kind of message telling the active object selection was changed (from inside the ToolData), not via-via. And definitely not using such a hacky and complex solution.<br />
It has been a while, but I seem to remember that the whole use of the object's unique id was rather flawed as the id didn't exactly seem to be that unique after all.</p>
<p dir="auto">Anyway, I am still hoping for a nice solution to detect when user changes the current active object. But it seems to not be possible after all.</p>
]]></description><link>http://developers.maxon.net/forum/post/57455</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/57455</guid><dc:creator><![CDATA[C4DS]]></dc:creator><pubDate>Mon, 25 Feb 2019 20:49:48 GMT</pubDate></item><item><title><![CDATA[Reply to detect the selection of an object on Mon, 25 Feb 2019 19:49:52 GMT]]></title><description><![CDATA[<p dir="auto">It's from R19 only. It will remove OnFloor compatibility from R13 to R18 <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--disappointed" style="height:23px;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
]]></description><link>http://developers.maxon.net/forum/post/57453</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/57453</guid><dc:creator><![CDATA[Passion3D]]></dc:creator><pubDate>Mon, 25 Feb 2019 19:49:52 GMT</pubDate></item><item><title><![CDATA[Reply to detect the selection of an object on Mon, 25 Feb 2019 19:46:12 GMT]]></title><description><![CDATA[<p dir="auto">A <a href="https://developers.maxon.net/docs/py/2023_2/modules/c4d.documents/BaseDocument/index.html?highlight=picksession#BaseDocument.StartPickSession" target="_blank" rel="noopener noreferrer nofollow ugc">PickSession()</a> lets you retrieve objects. The transfer tool uses something similar.<br />
Although, it may not be possible to directly click in the object tree with a tool enabled (and there are no tools in C4D that I know of), but you could add a link to your tool that allows you to pick an object that should be considered for placing.<br />
Take a look at the transfer tool - maybe that's what you're looking for.</p>
]]></description><link>http://developers.maxon.net/forum/post/57452</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/57452</guid><dc:creator><![CDATA[mp5gosu]]></dc:creator><pubDate>Mon, 25 Feb 2019 19:46:12 GMT</pubDate></item><item><title><![CDATA[Reply to detect the selection of an object on Mon, 25 Feb 2019 19:41:43 GMT]]></title><description><![CDATA[<p dir="auto">PickSession?</p>
]]></description><link>http://developers.maxon.net/forum/post/57451</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/57451</guid><dc:creator><![CDATA[Passion3D]]></dc:creator><pubDate>Mon, 25 Feb 2019 19:41:43 GMT</pubDate></item><item><title><![CDATA[Reply to detect the selection of an object on Mon, 25 Feb 2019 19:38:38 GMT]]></title><description><![CDATA[<p dir="auto">That's a PickSession Candidate, right?</p>
]]></description><link>http://developers.maxon.net/forum/post/57450</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/57450</guid><dc:creator><![CDATA[mp5gosu]]></dc:creator><pubDate>Mon, 25 Feb 2019 19:38:38 GMT</pubDate></item><item><title><![CDATA[Reply to detect the selection of an object on Mon, 25 Feb 2019 19:22:09 GMT]]></title><description><![CDATA[<p dir="auto">Hi Andreas<br />
It's an improvement I want to make to OnFloor.<br />
Currently, the tool is activated and then click on each object in the 3D view to place it on the ground.<br />
In the case of a complex scene, it can be difficult to find an object in the 3D view. So I would like to include the possibility of clicking on the object in the scene tree structure.</p>
]]></description><link>http://developers.maxon.net/forum/post/57449</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/57449</guid><dc:creator><![CDATA[Passion3D]]></dc:creator><pubDate>Mon, 25 Feb 2019 19:22:09 GMT</pubDate></item><item><title><![CDATA[Reply to detect the selection of an object on Mon, 25 Feb 2019 18:09:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">no, that's not possible. Can you give us a use-case, where this is needed for in a ToolData? Maybe we can come up with something else.</p>
<p dir="auto">Cheers,<br />
Andreas</p>
]]></description><link>http://developers.maxon.net/forum/post/57444</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/57444</guid><dc:creator><![CDATA[a_block]]></dc:creator><pubDate>Mon, 25 Feb 2019 18:09:48 GMT</pubDate></item></channel></rss>