Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Custom Menu

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 316 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      On 25/03/2013 at 16:04, xxxxxxxx wrote:

      Hi Everybody,

      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)?

      Thank you!

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 26/03/2013 at 10:25, xxxxxxxx wrote:

          yeah, works perfectly, thank you littledevil 🙂

          1 Reply Last reply Reply Quote 0
          • First post
            Last post