<?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[Limit On the Number Of Takes]]></title><description><![CDATA[<p dir="auto">Hi.</p>
<p dir="auto">I am running into an issue when creating a large number of takes where Cinema is crashing on me, and this problem seems unrelated to the actual creation of the takes.</p>
<p dir="auto">Using my code I try to create a large number of takes, around 1400, with parameters overridden for objects in the scene, at some point during the creation process Cinema will crash. I recreated the case inside of CInema without my code by creating a take with one overridden object and then copy and pasting it, when I get to around 1400 takes in the document Cinema crashes on me.</p>
<p dir="auto">Is this just a limitation of Cinema when it comes to takes and that it can't handle that many inside of one document? Having multiple documents with a thousand takes in them open at the same time does not cause Cinema to crash.</p>
<p dir="auto">Any help would be greatly appreciated.</p>
<p dir="auto">John Terenece</p>
]]></description><link>http://developers.maxon.net/forum/topic/13941/limit-on-the-number-of-takes</link><generator>RSS for Node</generator><lastBuildDate>Fri, 16 Oct 2026 20:44:19 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/13941.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 May 2022 23:37:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Limit On the Number Of Takes on Thu, 05 May 2022 22:57:13 GMT]]></title><description><![CDATA[<p dir="auto">@m_magalhaes</p>
<p dir="auto">Thanks for the response.</p>
<p dir="auto">Might be able to use your idea as potential solution.</p>
<p dir="auto">John Terenece</p>
]]></description><link>http://developers.maxon.net/forum/post/68933</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/68933</guid><dc:creator><![CDATA[JohnTerenece]]></dc:creator><pubDate>Thu, 05 May 2022 22:57:13 GMT</pubDate></item><item><title><![CDATA[Reply to Limit On the Number Of Takes on Wed, 04 May 2022 10:11:45 GMT]]></title><description><![CDATA[<p dir="auto">hi,</p>
<p dir="auto">I could reproduce the issue on R20 for 1380 takes.With the release S26, the number is a bit higher, but it still crashes.  I've opened a bug report for that.</p>
<p dir="auto">One workaround would be to create takes that will act as group, i was able to go over that ceiling. The time get higher and higher for creating those takes. I stopped at 10 groups of 1000 takes.</p>
<pre><code>from typing import Optional
import c4d

def main():
    # create a sphere and insert it in the document.
    sphere = c4d.BaseObject(c4d.Osphere)
    doc.InsertObject(sphere, None, None)
    c4d.EventAdd()


    if not sphere.CheckType(c4d.Osphere):
        raise TypeError("The objects is not a sphere.")

    # Stores a copy of this object to use later in the autotake as initial state comparison
    undoObject = sphere.GetClone(c4d.COPYFLAGS_0)

    # Changes the radius of the sphere in scene
    originalSize = 100
    sphere[c4d.PRIM_SPHERE_RAD] = originalSize - 1



    takeData = doc.GetTakeData()
    if takeData is None:
        raise RuntimeError("Failed to retrieve the take data.")
    # Checks if there is some TakeData and the current mode is set to auto Take
    if takeData and takeData.GetTakeMode() == c4d.TAKE_MODE_AUTO:
        # Add a new group take
        for i in range(0, 4):
            # Adds a new Take that will group other takes
            groupTake = takeData.AddTake("this is a new take {}".format(i), None, None)
            for j in range(0, 1000):
                newTake = takeData.AddTake("this is a new take {}".format(j), groupTake, None)
                sphere[c4d.PRIM_SPHERE_RAD] = originalSize + j
                if newTake is None:
                    raise RuntimeError("Failed to add a new take.")
                newTake.AutoTake(takeData, sphere, undoObject)
    sphere[c4d.PRIM_SPHERE_RAD] = originalSize

    # Pushes an update event to Cinema 4D
    c4d.EventAdd()


if __name__ == '__main__':
    main()
</code></pre>
<p dir="auto">cheers,<br />
Manuel</p>
]]></description><link>http://developers.maxon.net/forum/post/68918</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/68918</guid><dc:creator><![CDATA[Manuel]]></dc:creator><pubDate>Wed, 04 May 2022 10:11:45 GMT</pubDate></item><item><title><![CDATA[Reply to Limit On the Number Of Takes on Wed, 04 May 2022 04:21:53 GMT]]></title><description><![CDATA[<p dir="auto">Just to clarify, I know that adding more objects and such to a document in Cinema will make it use up more memory and cause it to lag when it gets bad enough. My issue is that Cinema is running fine with a certain number of takes and then I add one more and it immediately crashes.</p>
]]></description><link>http://developers.maxon.net/forum/post/68910</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/68910</guid><dc:creator><![CDATA[JohnTerenece]]></dc:creator><pubDate>Wed, 04 May 2022 04:21:53 GMT</pubDate></item></channel></rss>