Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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
    • Recent
    • Tags
    • Users
    • Register
    • Login

    MergeDocument() crash C4D

    Scheduled Pinned Locked Moved Cinema 4D SDK
    python2026
    5 Posts 2 Posters 34 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • chuanzhenC Offline
      chuanzhen
      last edited by

      Hi,

      c4d.documents.MergeDocument(doc, path_str,c4d.SCENEFILTER_OBJECTS | c4d.SCENEFILTER_MATERIALS,None)
      

      this code,c4d always crashed

      相信我,可以的!

      AnlvA 1 Reply Last reply Reply Quote 0
      • AnlvA Offline
        Anlv @chuanzhen
        last edited by Anlv

        Hi, @chuanzhen

        This code runs fine on my end (Cinema 4D 2026.3.4). Analyzing the cause of the failure may require more detailed information, such as the Cinema 4D version number and the real path (path resolution may occur), and corruption of the path_str file is also one possibility.

        Cheers,
        Anlv

        chuanzhenC 1 Reply Last reply Reply Quote 0
        • chuanzhenC Offline
          chuanzhen @Anlv
          last edited by

          @Anlv Hi
          Here is a video demonstrating how C4D crashes. For a saved document (or a loaded document), using MergeDocument() is fine, but for a new document that hasn't been saved, using MergeDocument() will definitely crash
          2026.3.3 win11

          相信我,可以的!

          AnlvA 1 Reply Last reply Reply Quote 0
          • AnlvA Offline
            Anlv @chuanzhen
            last edited by

            Hi, @chuanzhen

            I tested the same code as you in both saved projects and unsaved new documents, but no crash occurred. This might be a bug, possibly related to the ObjectData plugin in your project. I can't be certain that's the cause. You could try ruling out the plugin's influence first. But this is beyond my capability, so let's wait for more professional personnel to help.

            Cheers,
            Anlv

            chuanzhenC 1 Reply Last reply Reply Quote 0
            • chuanzhenC Offline
              chuanzhen @Anlv
              last edited by

              @Anlv Thanks for your reply.can't reproduce this issue on your side, it seems I need to test it on other computers. It's a puzzling problem

              相信我,可以的!

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