<?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[R21 CommandData with option - not working on macOS]]></title><description><![CDATA[<p dir="auto">I am updating an R20 plugin to work with R21.<br />
The <code>CommandData</code> has changed, and requires an additional argument in most of its methods. Fine!<br />
Plugin is updated and is available in the "Extensions" menu of R21.<br />
However, in R20 it was available as an entry with a cog wheel behind it, since I had registered the <code>CommandData</code> as:</p>
<pre><code>RegisterCommandPlugin(PLUGINID, GeLoadString(IDS_PLUGINNAME), PLUGINFLAG_COMMAND_OPTION_DIALOG, AutoBitmap("plugin.png"_s), "pluginname"_s, NewObjClear(PluginCommand));
</code></pre>
<p dir="auto">I first converted the R20 code to R21 on Windows, and ran Cinema4D in debug. I didn't notice the cogwheel missing on Windows, it still might be the case, I just have currently no possibility to check it. However, now on macOS it is obviously missing.</p>
<p dir="auto">Worst is that I seem to be unable to access <code>CommandData::Execute()</code> as selecting the plugin entry in the "Extensions" always seems to bring up the option dialog window, thus actually performing <code>CommandData::ExecuteOptionID()</code>.<br />
When I assign a shortcut to the plugin without the "option" checked, then hitting the shortcut will perform the <code>CommandData::Execute()</code>.</p>
<p dir="auto">This is on High Sierra, with a freshly installed R21.026 (this exact morning).</p>
<p dir="auto">Will need to cross check what happens on Windows 10 ...</p>
]]></description><link>http://developers.maxon.net/forum/topic/11837/r21-commanddata-with-option-not-working-on-macos</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 07:34:50 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/11837.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 27 Sep 2019 11:32:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to R21 CommandData with option - not working on macOS on Tue, 03 Mar 2020 03:19:23 GMT]]></title><description><![CDATA[<p dir="auto">Ok, thanks @r_gigante... I'll keeping going with the workaround.</p>
]]></description><link>http://developers.maxon.net/forum/post/61811</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/61811</guid><dc:creator><![CDATA[ph1lh00k]]></dc:creator><pubDate>Tue, 03 Mar 2020 03:19:23 GMT</pubDate></item><item><title><![CDATA[Reply to R21 CommandData with option - not working on macOS on Mon, 02 Mar 2020 09:56:47 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ph1lh00k">@<bdi>ph1lh00k</bdi></a> , no update so far</p>
<p dir="auto">Cheers, R</p>
]]></description><link>http://developers.maxon.net/forum/post/61784</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/61784</guid><dc:creator><![CDATA[r_gigante]]></dc:creator><pubDate>Mon, 02 Mar 2020 09:56:47 GMT</pubDate></item><item><title><![CDATA[Reply to R21 CommandData with option - not working on macOS on Mon, 02 Mar 2020 04:30:46 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/r_gigante">@<bdi>r_gigante</bdi></a> ,</p>
<p dir="auto">Has this issue been resolved yet?</p>
<p dir="auto">Thanks,<br />
Phil</p>
]]></description><link>http://developers.maxon.net/forum/post/61782</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/61782</guid><dc:creator><![CDATA[ph1lh00k]]></dc:creator><pubDate>Mon, 02 Mar 2020 04:30:46 GMT</pubDate></item><item><title><![CDATA[Reply to R21 CommandData with option - not working on macOS on Mon, 07 Oct 2019 07:05:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi Daniel,</p>
<p dir="auto">for the time being I see three options:</p>
<ul>
<li>run Cinema with its own menu bar;</li>
<li>drag out the menù containing your CommandData in order to make the cogwheel appear</li>
<li>use keyboard modifiers:
<ul>
<li>Alt + LMB -&gt; lunches CommandData::Execute()</li>
<li>LMB -&gt; lunches CommandData::ExecuteOptionID()</li>
</ul>
</li>
</ul>
<p dir="auto">Best, Riccardo</p>
]]></description><link>http://developers.maxon.net/forum/post/59797</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/59797</guid><dc:creator><![CDATA[r_gigante]]></dc:creator><pubDate>Mon, 07 Oct 2019 07:05:10 GMT</pubDate></item><item><title><![CDATA[Reply to R21 CommandData with option - not working on macOS on Fri, 04 Oct 2019 16:50:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/r_gigante">@<bdi>r_gigante</bdi></a><br />
Good to know to check with value zero, but that isn't exactly what I meant.</p>
<p dir="auto">You see, when user has the default layout with "Extension" menu part of the macOS menu, at that point the user has no possibility to launch the plugin via the cog wheel.<br />
What I thus meant: is MAXON looking to bring back a way to show and use the cog wheel when using the macOS menu. Or is there a way for the user to launch the plugin with or without option (assuming the macOS menu is used).</p>
]]></description><link>http://developers.maxon.net/forum/post/59783</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/59783</guid><dc:creator><![CDATA[C4DS]]></dc:creator><pubDate>Fri, 04 Oct 2019 16:50:50 GMT</pubDate></item><item><title><![CDATA[Reply to R21 CommandData with option - not working on macOS on Fri, 04 Oct 2019 16:28:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/c4ds">@<bdi>C4DS</bdi></a> said in <a href="https://developers.maxon.net/forum/post/59757" target="_blank" rel="noopener noreferrer nofollow ugc">R21 CommandData with option - not working on macOS</a>:</p>
<blockquote>
<p dir="auto">Is a solution being looked at, in order to provide a work around to the known limitation, or provide an alternative way of having the CommandData option available?</p>
</blockquote>
<p dir="auto">If I properly understood your question, for the time being, the workaround should take in consideration that when the command is called from the "Extension" menu (on Cinema uses macOS menu bar as its menu bar) the value of the <code>subid</code> parameter is zero.</p>
<p dir="auto">Hope it makes sense (but I might have misunderstood your comment)</p>
<p dir="auto">Cheers, R</p>
]]></description><link>http://developers.maxon.net/forum/post/59781</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/59781</guid><dc:creator><![CDATA[r_gigante]]></dc:creator><pubDate>Fri, 04 Oct 2019 16:28:21 GMT</pubDate></item><item><title><![CDATA[Reply to R21 CommandData with option - not working on macOS on Thu, 03 Oct 2019 16:44:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/r_gigante">@<bdi>r_gigante</bdi></a><br />
Thanks for confirming the issue.<br />
Should I leave the topic open until a bugfix is provided, or need I close it since not much more can be done at this point in time?</p>
<p dir="auto">A question on the side, for documentation purposes:<br />
Is a solution being looked at, in order to provide a work around to the known limitation, or provide an alternative way of having the CommandData option available?</p>
]]></description><link>http://developers.maxon.net/forum/post/59757</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/59757</guid><dc:creator><![CDATA[C4DS]]></dc:creator><pubDate>Thu, 03 Oct 2019 16:44:25 GMT</pubDate></item><item><title><![CDATA[Reply to R21 CommandData with option - not working on macOS on Thu, 03 Oct 2019 11:07:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi Daniel, first and foremost I apologize for the delay getting back here. It simply slipped through our daily checking for a few days and we're indeed grateful to you for having reported the focus on it.</p>
<p dir="auto">With regard to the reported behavior I confirm that it's a limitation we already know and it appears only on macOS when the Cinema 4D top menu bar is embedded in the macOS menu bar.</p>
<p dir="auto">If Cinema runs with its own top menu bar, the issue doesn't occur.</p>
<p dir="auto">What instead looks like a bug to me is that when Cinema uses the macOS menu bar, clicking on the command doesn't fire the <code>Execute()</code> method but rather the <code>ExecuteOptionID()</code> with the <code>subid</code> parameter equal to 0. On the opposite when Cinema uses its own top menu bar clicking on the command just fires the <code>Execute()</code> as expected.<br />
I'm going to file a bug report and see how it evolves.</p>
<p dir="auto">Best, Riccardo</p>
]]></description><link>http://developers.maxon.net/forum/post/59748</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/59748</guid><dc:creator><![CDATA[r_gigante]]></dc:creator><pubDate>Thu, 03 Oct 2019 11:07:29 GMT</pubDate></item><item><title><![CDATA[Reply to R21 CommandData with option - not working on macOS on Wed, 02 Oct 2019 19:09:54 GMT]]></title><description><![CDATA[<p dir="auto">I have modified the subject line in order to better indicate there's an issue on macOS. Also added the "issue" tag.<br />
As it has been 5 days without any feedback, I am starting to fear that this is yet another one that cannot be reproduced ...</p>
]]></description><link>http://developers.maxon.net/forum/post/59729</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/59729</guid><dc:creator><![CDATA[C4DS]]></dc:creator><pubDate>Wed, 02 Oct 2019 19:09:54 GMT</pubDate></item><item><title><![CDATA[Reply to R21 CommandData with option - not working on macOS on Fri, 27 Sep 2019 12:51:05 GMT]]></title><description><![CDATA[<p dir="auto">Just checked on Windows, the cogwheel is present using R21.022 and after upgrading to R21.026 cogwheel is still available on Windows.<br />
So is this a macOS thing only ?</p>
]]></description><link>http://developers.maxon.net/forum/post/59630</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/59630</guid><dc:creator><![CDATA[C4DS]]></dc:creator><pubDate>Fri, 27 Sep 2019 12:51:05 GMT</pubDate></item></channel></rss>