how to extract thumbnail image from .c4d file without Cinema 4D installed?
-
My goal is to create software that can display thumbnails of .c4d files, regardless of whether the user has Cinema 4D installed.
Perhaps I can obtain the relevant functions from the Cinema 4D SDK to launch a .c4d scene in the background and capture a screenshot. However, I believe this approach might be too expansive for many files.
Here are the steps I attempted: I copied a .c4d file to a brand new computer and used the win_thumbnail.dll from my original computer to update the registry on this new computer. After that, the .c4d file display the thumbnail correctly.
Does the .c4d file already contain a pre-generated thumbnail, and how can I retrieve it?
thanks for your help.
-
-
Hello @saotome_rui,
Welcome to the Plugin Café forum and the Cinema 4D development 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 Guidelines, as they line out details about the Maxon SDK Group support procedures. Of special importance are:
- Support Procedures: Scope of Support: Lines out the things we will do and what we will not do.
- Support Procedures: Confidential Data: Most questions should be accompanied by code but code cannot always be shared publicly. This section explains how to share code confidentially with Maxon.
- Forum Structure and Features: Lines out how the forum works.
- Structure of a Question: Lines out how to ask a good technical question. It is not mandatory to follow this exactly, but you should follow the idea of keeping things short and mentioning your primary question in a clear manner.
About your First Question
I have moved your question to the Cineware forum, since you said
My goal is to create software that can display thumbnails of .c4d files, regardless of whether the user has Cinema 4D installed.
Using the Cinema 4D API always requires a Cinema 4D installation, be it the C++ or Python API. The
C++ Cineware API
[URL-REMOVED] is the API to use when you want to read and write Cinema 4D documents without a Cinema 4D installation. With the Cineware API you can use BaseDocument::GetDocPreviewBitmap to get a thumbnail for a document. I would recommend that you try to get started and then come back in case you have a concrete project setup, design, or coding problem.If C++ is not an option for you, you can try your luck with one of the OS thumbnail handlers with Python/C# etc., but that would be out of scope of support, as we cannot disclose details about the binary format of Cinema 4D files.
Cheers,
Ferdinand
[URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.
-
-
-
Hello @saotome_rui ,
without further questions or postings, we will consider this topic as solved by Friday, the 11th of august 2023 and flag it accordingly.
Thank you for your understanding,
Maxon SDK Group