How to add command plugins' dropdown menu on to c4d main menu bar
-
How to add command plugins' dropdown menu on to c4d main menu bar or viewport menu bar like redshift ,as the picture shows:
The examples in C++ SDK put them all into the Extensions as default. -
Hey @freeze,
Thank you for reaching out to us. You find your answer for how to hook into the main menu in C4DPL_BUILDMENU. A bit more illustrated Python case where I also talk about do's and dont's, can be found here.
You cannot extend the menu of a viewport (technically you can but you mustn't). We also generally advise against plugins adding their own top-level menu entries. Render engines are somewhat an exception (which you seem to develop); but generally we want to reduce menu clutter.
Cheers,
Ferdinand -
@ferdinand Thank you for replying!