<?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[when I use .GetMg() after the script is finished it seems to return the right results]]></title><description><![CDATA[<p dir="auto">When I use .GetMg() after the script is finished it seems to return the right results<br />
Is this a bug? maybe rerelated to the IK Tag</p>
<p dir="auto"><video class="embed-video-local" controls src="/forum/assets/uploads/files/1713043443934-tfekjgsiu6.mp4">
</video></p>]]></description><link>http://developers.maxon.net/forum/topic/15468/when-i-use-getmg-after-the-script-is-finished-it-seems-to-return-the-right-results</link><generator>RSS for Node</generator><lastBuildDate>Sun, 18 Oct 2026 01:18:02 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/15468.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 13 Apr 2024 21:27:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to when I use .GetMg() after the script is finished it seems to return the right results on Mon, 15 Apr 2024 11:35:23 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, buddy! It worked. To be honest, I never really understood what <a href="https://developers.maxon.net/docs/py/2024_4_0a/modules/c4d/C4DAtom/index.html#C4DAtom.Message" target="_blank" rel="noopener noreferrer nofollow ugc">Message(c4d.MSG_UPDATE)</a> was all about, and now <a href="https://developers.maxon.net/docs/py/2024_4_0a/modules/c4d.documents/BaseDocument/index.html?highlight=executepasses#BaseDocument.ExecutePasses" target="_blank" rel="noopener noreferrer nofollow ugc">ExecutePasses</a> is new to me</p>
]]></description><link>http://developers.maxon.net/forum/post/74118</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/74118</guid><dc:creator><![CDATA[pyxelrigger]]></dc:creator><pubDate>Mon, 15 Apr 2024 11:35:23 GMT</pubDate></item><item><title><![CDATA[Reply to when I use .GetMg() after the script is finished it seems to return the right results on Mon, 15 Apr 2024 09:25:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/pyxelrigger">@<bdi>pyxelrigger</bdi></a> while a screen and a gif is nice, a piece of code is even nicer since it can be copy/pasted and easily read.</p>
<p dir="auto">With that's said I think you need to at least execute the scene once with <a href="https://developers.maxon.net/docs/py/2024_4_0a/modules/c4d.documents/BaseDocument/index.html?highlight=executepasses#BaseDocument.ExecutePasses" target="_blank" rel="noopener noreferrer nofollow ugc">ExecutePasses</a> just after your Message(c4d.MSG_UPDATE).<br />
The reason is because MSG_UPDATE have the purpose to update internal cache of the geometry, and also set dirty the cache (aka say it needs to be re-generated). This is the same with the tags you added it most likely also set dirtiness (needs to be recomputed on the next scene execution).<br />
And then you call EventAdd at the end of your script, so you are telling Cinema 4D that he needs to do another ExecutionPass (Scene Execution) which will be what Cinema 4D will do most likely very soon after the Python Script have been executed. And therefor when you run the script in the console, the scene have been executed, and therefor the tag and everything have been executed and therefor the value are "correct".</p>
<p dir="auto">Cheers,<br />
Maxime.</p>
]]></description><link>http://developers.maxon.net/forum/post/74116</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/74116</guid><dc:creator><![CDATA[m_adam]]></dc:creator><pubDate>Mon, 15 Apr 2024 09:25:22 GMT</pubDate></item></channel></rss>