Hi Folks,
We trying to call a python script from the menu bar.
From in this example
https://developers.maxon.net/docs/Cinema4DPythonSDK/html/misc/pluginstructure.html?highlight=pluginmessage#PluginMessage
a python script can be attached to a container via
menu.InsData(c4d.MENURESOURCE_COMMAND, "IDM_NEU")*
To attach an external python script to a button of the menu I needs to be registered as a plugin
with a unique plugin ID (e.G. 123456)
menu.InsData(c4d.MENURESOURCE_COMMAND, "PLUGIN_CMD_123456")
Does this mean for each button added to the menu bar, you have to register a new plugin with a unique ID in order to attach a callback to it ?
Or is there a more convenient way of doing this ?
*e.G. menu.InsData(c4d.MENURESOURCE_COMMAND, callbackFunction(args))
Thank for your help