thank you for the reply.
I managed to implement the GetSubContainer() and ExecuteSubID() function.
However what I don’t get to work is;
How you would you specify the displayed names of the commands ?
Before when registering multiple commands, the name was specified in the same step
c4d.plugins.RegisterCommandPlugin(id=“PLUGIN_CMD_123456”, str=‘New Command’, info=0, icon=None, help="", dat=self.__callBackInstance)
From the docs the [CommandData.GetSubContainer()](https://developers.maxon.net/docs/Cinema4DPythonSDK/html/modules/c4d.plugins/BaseData/CommandData/index.html#CommandData.GetSubContainer) looks like the `BaseContainer.SetString(id, s) ` function would do something like that.
bc = BaseContainer()
bc.SetString(1, "Submenu Test")
bc.SetString(1000, "First Entry")
But I am not entirely sure.
What would be the correct way to pass the command to the container and specify their names ?
thanks in advance
and get busy cafe :)
We trying to call a python script from the menu bar.
From in this example
a python script can be attached to a container via
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)
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