Macro Definition Documentation
◆
C4DPL_VERSION
The version of
Cinema 4D
plugin API.
◆
SetPluginPriority
|
#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
|
Function Documentation
◆
PluginStart()
|
Bool
PluginStart
|
(
|
void
|
|
)
|
|
Called when a plugin is loaded from
Cinema 4D
. Think of it as the equivalent to the usual
main()
函数。
Here register all the plugin types and initialize them.
For example, the basics needed are:
Bool
PluginStart
()
{
if
(!
g_resource
.
Init
())
return
false
;
// Do not start plugin without resource
if
(!RegisterMyPlugin())
return
false
;