THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/11/2008 at 04:43, xxxxxxxx wrote:
Cinema 4D Version: 11
Platform: Mac OSX ;
Language(s) : C++ ;
I try to collect my different tag plugins in a special submenu in the Objects->Tags menu.
As I cannot put all my plugins in one project (described here) it won't work automatically.
I've been successful to create the menu and even to fill it with an object plugin for testing purpose but adding tag plugins via
> sc->InsData(MENURESOURCE_COMMAND, String("PLUGIN_CMD_1023254"));
does not work.
Can anybody help?
On 11/11/2008 at 11:34, xxxxxxxx wrote:
You are killing yourself here over nothing.
What prevents you from having more than one plugin in your project? My main plugin has something like 23 plugins in it (one project). Just like the cinema4dsdk project contains all of the example plugins, you simply register each one in main.cpp's PluginStart().
As Samir (3D Designer) mentioned, Cinema 4D only submenu's these when there is more than one tag (or command plugin in the Plugins menu). I don't think you can override it (unless someone has knowledge from experience doing this).
One possible way might be to include a dummy tag plugin which is simply used as a menu separator (this is discussed in the SDK documentation under RegisterTagPlugin()). And, yes, you will need a unique Plugin ID for this dummy - but that is the only way to do it (that's even how Cinema 4D does it!). Maybe that dummy tag will cause your real tag to be placed into a submenu (?).
On 12/11/2008 at 01:35, xxxxxxxx wrote:
Thanks for your reply.
As I am working with several people and everybody on different plugins (that eventually should go into the same menu) it is not a very convenient solution to put everything in one project. Same applies on a situation where I only want to distribute some but not all plugins.
As mentioned above changing the main menu does work perfectly and placing object plugins into a special submenu is no hazzle at all. I'm just a little disappointed that the same thing doesn't apply to tag plugins, the object manager and context menus as well...
Thanks again macm