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

    C4D 2026.4 — Supported API to release an imported Particle Group Alembic file handle?

    Scheduled Pinned Locked Moved Cinema 4D SDK
    c++windows2026python
    2 Posts 2 Posters 49 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.
    • H Offline
      hey2495
      last edited by

      Title: Cinema 4D 2026.4: How to release an Alembic file used by a Particle Group?

      Hi Maxon SDK team,

      I'm developing a Cinema 4D plugin on Windows (Cinema 4D 2026.4). It imports an animated Alembic file as a native Particle Group using c4d.documents.MergeDocument().

      When the archive is no longer needed, I disable the Particle Group cache and clear it:

      • pg.SetParameter(c4d.DescID(c4d.SIMULATION_CACHE_ENABLED), False, c4d.DESCFLAGS_SET_0)
      • doc.ExecutePasses(None, True, True, True, c4d.BUILDFLAGS_NONE)
      • c4d.CallButton(pg, c4d.SIMULATION_DELCACHE)

      The Particle Group then reports zero particles, but Windows still returns [WinError 32] (file in use) when I try to rename the original .abc file.

      I reproduced this with an animated Ogawa Alembic file (22 samples, around 51,700 particles at frame 1) in a fresh test document, without adding Undo entries or changing the source path. The same procedure successfully releases a small, single-sample Alembic file.

      Is there a supported Python or C++ API or workflow that releases the native Particle Group's Alembic file handle while keeping the Cinema 4D document open? Does removing or freeing the imported Particle Group guarantee that the file is released, or is there another required step?

      I can provide the exact test script and a sample Alembic archive if needed.

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF Offline
        ferdinand @hey2495
        last edited by

        Hello @hey2495,

        Welcome to the Maxon developers forum and its community, it is great to have you with us!

        Getting Started

        Before creating your next postings, we would recommend making yourself accustomed with our forum and support procedures. You did not do anything wrong, we point all new users to these rules.

        • Forum Overview: Provides a broad overview of the fundamental structure and rules of this forum, such as the purpose of the different sub-forums or the fact that we will ban users who engage in hate speech or harassment.
        • Support Procedures: Provides a more in detail overview of how we provide technical support for APIs here. This topic will tell you how to ask good questions and limits of our technical support.
        • Forum Features: Provides an overview of the technical features of this forum, such as Markdown markup or file uploads.

        It is strongly recommended to read the first two topics carefully, especially the section Support Procedures: How to Ask Questions.

        About your First Question

        I would try closing the file into which you imported the Alembic file. I just checked it, when I import any Alembic file, Cinema holds a lock onto it while the file into which you imported is still open. That seems to be an Alembic specific behaviour, not to say a bug. But it should be avoidable by simply cloning or merging the imported document, so that you can close the import document.

        I will give the exchange team a heads up on this.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

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