On 25/03/2013 at 16:04, xxxxxxxx wrote:
I just began to write Python Plug-in for C4D, and I have a question.
I found a way to manage the menus (in Windows/Customization/Customize Menus...) and adding a new one.
so with this tool, I created a new menu, containing submenus.
(here is a picture to help you understanding the thing)
The problem is I can't find any way to link those new buttons to do something, for the moment, they are just here, for decoration...
So I was wondering if it was possible to link those buttons to a Python Plug-in (or script) to make them do something (here to open google.com on my web browser)?
On 25/03/2013 at 19:47, xxxxxxxx wrote:
i does work the other way arround. you do not create menu items and then fill them with
logic, but you create classes/methods which also provide a menu representation. you have
created just a folder ('test') containing two other folders ('launch google' and 'launch file').
to create such menu commands you would have to write two CommandData plugins providing
the desired functions and then drag these plugins from the customize commands window into
your 'test' folder in the customize menu window.
On 26/03/2013 at 10:25, xxxxxxxx wrote:
yeah, works perfectly, thank you littledevil :)