<?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[Mesh Emitter CallCommand works in Script Manager, no-op from plugin]]></title><description><![CDATA[<p dir="auto">I'm trying to create a Mesh Emitter with the selected object as Geometry, same as Simulate &gt; Mesh Emitter when geo is already selected.</p>
<p dir="auto">Script Manager (works):</p>
<pre><code>import c4d
doc = c4d.documents.GetActiveDocument()
geo = doc.GetActiveObject()
doc.SetActiveObject(geo, c4d.SELECTION_NEW)
c4d.CallCommand(1062577, 1067510)  # Mesh Emitter
c4d.EventAdd()
</code></pre>
<p dir="auto">From an ObjectData plugin (doesn't): Create button builds a polygon object (100 pts). I don't call CallCommand from MSG_DESCRIPTION_COMMAND; the handler queues work and calls SpecialEventAdd, and a MessageData plugin runs the Mesh Emitter command in CoreMessage. Also tried having MessageData invoke a CommandData that runs the same CallCommand.</p>
<p dir="auto">Same result either way: active stays on the grid, no new emitter in the scene.</p>
<p dir="auto">So it's not selection or empty mesh. The command does nothing from plugin code but works in Script Manager.</p>
<p dir="auto">Does CallCommand(1062577, 1067510) only work in certain contexts? What's the supported way to create a Mesh Emitter from a description button without BaseObject(Ofpmeshemitter) + manual SetLink (Geometry grey out in the AM)?</p>
<p dir="auto">Ofpmeshemitter = 1062577. Script Log records CallCommand(1062577, 1067510) when using the menu.</p>
]]></description><link>http://developers.maxon.net/forum/topic/16435/mesh-emitter-callcommand-works-in-script-manager-no-op-from-plugin</link><generator>RSS for Node</generator><lastBuildDate>Mon, 03 Aug 2026 05:39:32 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/16435.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 31 Jul 2026 23:45:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mesh Emitter CallCommand works in Script Manager, no-op from plugin on Sat, 01 Aug 2026 13:33:08 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Anlv<br />
It looks like its adding the emitter into a null is what's causing it.</p>
<p dir="auto">Fixed with deferred CallCommand(1062577) (no sub-id (1067510) silently no-ops). Emitter fields greys if the emitter/group are parented under the setup null or generator. Sibling placement below plugin object + rename works fine.</p>
]]></description><link>http://developers.maxon.net/forum/post/77299</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/77299</guid><dc:creator><![CDATA[atg]]></dc:creator><pubDate>Sat, 01 Aug 2026 13:33:08 GMT</pubDate></item><item><title><![CDATA[Reply to Mesh Emitter CallCommand works in Script Manager, no-op from plugin on Sat, 01 Aug 2026 07:48:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi, <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/atg">@<bdi>atg</bdi></a> Simply remove the invalid child IDs after the commands recorded in the script log, for example:</p>
<pre><code>c4d.CallCommand(1062577, 1067510) → c4d.CallCommand(1062577)
</code></pre>
<p dir="auto">I remember encountering the same issue before, but I can’t quite recall the details. I need to look it up.</p>
<pre><code>import c4d

doc: c4d.documents.BaseDocument  # The currently active document.
op: c4d.BaseObject | None  # The primary selected object in `doc`. Can be `None`.

def main() -&gt; None:
    """Called by Cinema 4D when the script is being executed.
    """
    c4d.CallCommand(1062577)  # Mesh Emitter

if __name__ == '__main__':
    main()
</code></pre>
<p dir="auto"><a href="https://developers.maxon.net/forum/topic/16406/how-do-i-retrieve-a-command-call-from-it-s-index-number/6" target="_blank" rel="noopener noreferrer nofollow ugc">How do I retrieve a command call from it's index number ?</a></p>
<p dir="auto">Cheers,<br />
Anlv</p>
]]></description><link>http://developers.maxon.net/forum/post/77298</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/77298</guid><dc:creator><![CDATA[Anlv]]></dc:creator><pubDate>Sat, 01 Aug 2026 07:48:24 GMT</pubDate></item></channel></rss>