Hi, thanks for your answer. I'd like to add a title line like here for example the 'DINAMICS' line.
G

Hi, thanks for your answer. I'd like to add a title line like here for example the 'DINAMICS' line.
G

Hey Forum,
I have two questions for you. 
THanks,
G
...
def insert(root: c4d.BaseContainer, title: str, data: MenuData) -> c4d.BaseContainer:
"""Inserts #data recursively under #root under the entry #title.
"""
# Create a new container and set its title.
subMenu: c4d.BaseContainer = c4d.BaseContainer()
subMenu.InsData(c4d.MENURESOURCE_SUBTITLE, title)
# Iterate over the values in data, insert commands, and recurse for dictionaries.
for key, value in data.items():
if isinstance(value, dict):
subMenu = insert(subMenu, key, value)
elif isinstance(value, int):
subMenu.InsData(c4d.MENURESOURCE_COMMAND, f"PLUGIN_CMD_{value}")
elif value is None: # Insert a separator
subMenu.InsData(c4d.MENURESOURCE_SEPARATOR, None)
elif isinstance(value, str):
# Add a non-clickable title
subMenu.InsData(c4d.MENURESOURCE_STRING, value)
root.InsData(c4d.MENURESOURCE_SUBMENU, subMenu)
return root
Hey,
I need some information how to set and get a specific parameters:
for example here on the render settings

On any node.

WHat's the easiest way to get a parameter id ( any object any parm ) ?
Thanks
Szabolcs
Could you share information about layout editing if there are any python methods or threads here ?
Hi,
Is there a way to insert a button to a Layout in C4D python ?
Thanks,
G

I just simply add a plugin to C4D which creates a user menu into C4D all in one pack without adding any script into the user C4D preferences folder ( library / scripts ) . Menu and script embedded solution all in one plugin inside.
Anyone here ? Any practice like this ?