The Cinema 4D SDK is the collection of frameworks and example projects available for third party developers to create Cinema 4D plugins. To use the SDK it is also necessary to get the Project Tool.
The sdk.zip file containing the frameworks and example projects is delivered with each version of Cinema 4D. This ZIP file can be extracted to any location on the file system.
Plugin development for Cinema 4D is currently supported on these platforms:
The unzipped SDK contains two folders:
The development solution includes plugin and framework projects. It is automatically generated based on the settings of a projectdefinition.txt
file. The master solution is located in the "plugins/project" folder. Additional custom plugins can be added to or removed from this solution by editing its projectdefinition.txt
file. Alternatively one can create a custom solution.
A new solution is simply added by creating a new sub-folder in the "plugins" folder. This folder must contain a custom projectdefinition.txt
file.
For more details see projectdefinition.txt.
A framework is a collection of source and header files that define a part of the MAXON API. It includes symbols, functions, data structures and interfaces. If a plugin project wants to access the functionality defined in such a framework it must include it in the project file (see below). The functionality presented in such frameworks is implemented in the modules delivered with Cinema 4D.
The functions, symbols and classes defined in these frameworks are commented using Doxygen syntax. Functions marked as "private" or "internal" must not be used by third party developers.
For an overview over all MAXON API frameworks see MAXON API Frameworks.
A new framework is created by adding a new sub-folder to the "frameworks" folder. Framework names are typically using the suffix ".framework" e.g. "custom.framework".
Such a framework folder must contain a "source" folder which will contain all source and header files of the framework. A "project" folder must contain the projectdefinition.txt
file. For more details see projectdefinition.txt.
A custom framework must be registered in a source code file in exactly one plugin (module). In this custom code a automatically generated hxx file must be included. The name of that hxx file is based on the framework's "ModuleId" (see Frameworks). E.g. for a framework named "com.examplecompany.myplugin.framework" the code would look like this:
The "plugins" folder contains these example plugin projects:
A new plugin is added by creating a sub-folder in the "plugins" folder. The suffix ".module" is used to identify plugins that purely use the MAXON API and do not use any classic API code. See Plugins, Modules and Dependencies.
The "source" folder of such a plugin must contain the source code files. The "project" folder contains the projectdefinition.txt
file that describes the plugin:
See also projectdefinition.txt and Plugin Development.
The complexity of the MAXON API requires the automation of various processes using custom tools: