<?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[How do I get the cache of a cloner in an ObjectData Plugin]]></title><description><![CDATA[<p dir="auto">Hi, sorry for this as always dumb question.</p>
<p dir="auto">I was trying to get the Cache of a cloner object in the GetVirtualObjects(self, op, hh) method.<br />
First I tried it in the python generator, there was already a cloner in the scene and in the python generator I returned the cache so to say, but this approach doesn´t work out in an object plugin.<br />
Even if I create a temp_doc. The returned cache is always None.<br />
But converting the cloner with a ModelingCommand is not the best way, if the cloner produces for instance a million clones.</p>
<p dir="auto">This method works in a python generator when the clone is already in the scene</p>
<pre><code>cloner = op.GetDown()
return cloner.GetCache().GetClone()
</code></pre>
<p dir="auto">But creating a cloner and returning its cache doesn`t work.</p>
<pre><code>cloner = c4d.BaseObject(1018544)
c4d.BaseObject(c4d.Ocube).InsertUnder(cloner)
return cloner.GetCache().GetClone()
</code></pre>
<p dir="auto">Is there a way to get the cache in a plugin?<br />
Sweep, Extrude, other Generators, Deformers and parametric objects work perfectly.</p>
]]></description><link>http://developers.maxon.net/forum/topic/15463/how-do-i-get-the-cache-of-a-cloner-in-an-objectdata-plugin</link><generator>RSS for Node</generator><lastBuildDate>Mon, 11 May 2026 17:30:49 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/15463.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 Apr 2024 23:16:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How do I get the cache of a cloner in an ObjectData Plugin on Thu, 11 Apr 2024 10:43:47 GMT]]></title><description><![CDATA[<p dir="auto">Good to hear!</p>
]]></description><link>http://developers.maxon.net/forum/post/74101</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/74101</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Thu, 11 Apr 2024 10:43:47 GMT</pubDate></item><item><title><![CDATA[Reply to How do I get the cache of a cloner in an ObjectData Plugin on Thu, 11 Apr 2024 09:45:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ferdinand">@<bdi>ferdinand</bdi></a><br />
oh man thanks I forgot this</p>
<pre><code>BaseDocument.ExecutePasses(bt=None, animation=False, expressions=False, caches=True, flags=c4d.BUILDFLAGS_NONE)
</code></pre>
<p dir="auto">I tried that before but it seems I have set the caches parameter wrong.<br />
Thank you very much....</p>
]]></description><link>http://developers.maxon.net/forum/post/74100</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/74100</guid><dc:creator><![CDATA[ThomasB]]></dc:creator><pubDate>Thu, 11 Apr 2024 09:45:57 GMT</pubDate></item><item><title><![CDATA[Reply to How do I get the cache of a cloner in an ObjectData Plugin on Thu, 11 Apr 2024 08:42:10 GMT]]></title><description><![CDATA[<p dir="auto">Hey <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/thomasb">@<bdi>ThomasB</bdi></a>,</p>
<p dir="auto">thank you for reaching out to us. First of all, there are no dumb questions <img src="http://developers.maxon.net/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=0b8ddba251d" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /> Caches must be built, and a newly allocated object has no cache. Please have a look at <a href="https://github.com/PluginCafe/cinema4d_py_sdk_extended/blob/master/scripts/04_3d_concepts/modeling/geometry/geometry_caches_s26.py" target="_blank" rel="noopener noreferrer nofollow ugc">geometry_caches_s26.py</a> for an introduction into caches, including how to build them.</p>
<p dir="auto">Cheers,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum/post/74097</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/74097</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Thu, 11 Apr 2024 08:42:10 GMT</pubDate></item></channel></rss>