THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/07/2011 at 00:57, xxxxxxxx wrote:
Cinema 4D Version: R12
Language(s) : C++ ;
I know this topic has come up before, and I've read all the threads on it, but I'm still confused. What I want is what the SDK examples do - all appear in a submenu of the Plugins menu. There's a mixture of tags, objects, deformers, and command plugins in there and they all appear in that one submenu.
But I can't see how it's done. Looking at the code for main.cpp, there's a function 'EnhanceMainMenu' but the call to this is commented out. If I uncomment it, the SDK example menu appears in the C4D main menu bar, which is what I would expect from the code. So, can anyone point me to the code which puts all those plugins in a submenu? I can't find any code which appears to do this.
On 06/07/2011 at 06:03, xxxxxxxx wrote:
Simply put your plugins in a parent folder under the Plugins folder. If there is only one plugin, though, it will not appear as a submenu. Use a folder structure like this and you should get a Plugins menu item with your plugins as subitems:
Cinema 4D R12
On 06/07/2011 at 06:27, xxxxxxxx wrote:
Yes, I could do that but then instead of distributing one plugin file containing multiple plugins, I've got to distribute several. And the SDK example doesn't do that - all the plugins are in one file and it dumps them all in one submenu.
There must be a way to do that. Do you know how it's done? It's exactly what you do with your Greebler plugin when it's installed, that's the result I want to achieve. One submenu with several plugin objects.
On 06/07/2011 at 06:36, xxxxxxxx wrote:
Oh, I see. Always works for me. Remember that not all plugin types are listed in the Plugins menu (tags are in the Tag menu of the A.M., materials and shaders in the Material manager, etc.). So, you need at least two plugins that will be shown in the Plugins menu (CommandData, ObjectData, ToolData will show up there) and a subfolder for the plugin. These two things are required. Plus, the plugin must have a string (2nd argument) in the Register method.
On 06/07/2011 at 07:09, xxxxxxxx wrote:
Ahhh.... that clang you heard was the penny dropping with a very loud noise. Now I get it! And I feel an idiot for being so obtuse. All the time I was experimenting with searching menu resources and so on, no wonder it wouldn't work!
Thanks very much for making it clear.