Is it possible to placing a custom menu after specific submenu from the File menu, after the Save submenu for example .
The script bellow insert my custom menu at the bottom of the File menu:
mainMenu = c4d.gui.GetMenuResource("M_EDITOR")
menu = c4d.BaseContainer()
menu.InsData(c4d.MENURESOURCE_SUBTITLE, "Custom Menu")
#menu.InsData(0, '') # Append separator
filemenue = mainMenu.GetData(1)
def PluginMessage(id, data):
if id == c4d.C4DPL_BUILDMENU:
Hi @mfersaoui unfortunately, this is not as easy as it sounds in Python.
Find in How to use InsDataAfter in menu a user who wants to add its own item after the "Scroll to first active object" within the Object Manager menu and in the last answers, there is a code snippet to do it.
If you need more specific help or if there is anything you don't understand, please let me know.