Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Bake animation in the background

    Cinema 4D SDK
    python
    2
    2
    364
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic was forked from Access Bake Objects (Timeline) or Bake Animation to Curves i_mazlov
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      brian.michael
      last edited by i_mazlov

      I am doing something similar to the code shown in here by lasselauch - launched by a button in my dialog box. Since I am not super experienced with the c4d api, this might be a simple ask, but how would I go about running this code where the UI will update, or updating the scene so it does not feel like it locks everything up? Would I use the timer, or a thread, or c4d.EventAdd(), or something else?

      Update 31/10/2024 (i_mazlov): Forked from https://developers.maxon.net/forum/topic/11667/access-bake-objects-timeline-or-bake-animation-to-curves/4

      i_mazlovI 1 Reply Last reply Reply Quote 0
      • i_mazlovI
        i_mazlov @brian.michael
        last edited by

        Hi @brian-michael,

        I've forked your posting in a dedicated thread. For your following postings please stick to our guidelines, which you can find in the Support Procedures, namely:

        Singular Subject: From all this follows that a topic must have a singular and sparse subject tied to a specific problem

        especially when it comes to N-years-old threads πŸ™‚

        Regarding your question, please share more context on what specifically you're trying to do, because depending on that you can end up in a completely different ways of approaching your goal.

        For example, if you'd like to bake animation in a "read-only manner" (just take the object transformations and store/send them somewhere), then the suggested approach would be to clone document and process it in a separate C4DThread. You can check Ferdinand's code example on the exact same topic in application to rendering document: RenderDocument/PythonCallBack : how to display progress prints during the render. However, with such approach you're limited to not being able to modify original document (because you'd use the cloned document instead of the active one).

        Cheers,
        Ilia

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 0
        • First post
          Last post