Classes | |
struct | C4DPL_CommandLineArgs |
struct | C4DPL_EditImage |
struct | C4DPL_DeviceChange |
struct | C4DPL_NetRenderResult |
Functions | |
Bool | PluginStart () |
void | PluginEnd () |
Bool | PluginMessage (Int32 id, void *data) |
#define C4DPL_VERSION |
The version of Cinema 4D plugin API.
#define SetPluginPriority | ( | data, | |
i | |||
) |
Sets the priority for a plugin.
[in] | data | The message data of the priority message. |
[in] | i | The plugin priority. Build the priority from one of the base priorities: C4DPL_INIT_PRIORITY |
Bool PluginStart | ( | ) |
Called when a plugin is loaded from Cinema 4D. Think of it as the equivalent to the usual main()
function.
Here register all the plugin types and initialize them.
For example, the basics needed are:
void PluginEnd | ( | ) |
Called when the plugin is unloaded from Cinema 4D.
Here free the plugin registrations and any resources which are not owned or already freed by other plugins (see PluginMessage()).
To free complex structures from other modules see C4DPL_ENDACTIVITY::
For example:
Called to receive plugin messages.
These can either be from Cinema 4D or from other plugins via GePluginMessage(). Here is an example:
[in] | id | The message ID. Built-in ones are: C4DPL_MESSAGES |
[in] | data | The message data. |