Hi, thanks for your answer. I'd like to add a title line like here for example the 'DINAMICS' line.
G
G
Latest posts made by Gemini
-
RE: Add Title Items (not packable) to Custom Menu
-
Add Title Items (not packable) to Custom Menu
Hey Forum,
I have two questions for you.
- Is there a way to add not pickable items like a title written with capital letter to custom menus created by python.
- How a toggle line be added and how can be get its sate ?
I added a part of my code above where the str item is not working sadly.
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
-
Easy Way to Set and Get parameter Values
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 -
-
RE: Customize Palettes by Python ( add Buttons )
Could you share information about layout editing if there are any python methods or threads here ?
-
Customize Palettes by Python ( add Buttons )
Hi,
Is there a way to insert a button to a Layout in C4D python ?
Thanks,
G -
RE: Plugin Which Creates MenuItems with Scripts ( not from user folder )
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.
-
RE: Plugin Which Creates MenuItems with Scripts ( not from user folder )
Anyone here ? Any practice like this ?