Grouping Plugins



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 02/08/2012 at 05:32, xxxxxxxx wrote:

    Guys i'm new to python scripts..please help me out my problem. I have made a plugins which i wanted to group them under one category. can anyone please help me writing this code.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 02/08/2012 at 07:04, xxxxxxxx wrote:

    When multiple plugins are registered from one source file or one directory, they are automatically grouped under a Sub-Menu that is named like the folder.

    My-Plugins\
      my-plugins.pyp
          # Registers 2 Plugins

    Then you will find a "My-Plugins" SubMenu in the plugins-menu that contains both plugins.

    -Nik



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 02/08/2012 at 14:16, xxxxxxxx wrote:

    hi

    i understand how to group my python plugins.

    but is there a way to have a sepperate icon for the group, like i have for my plugins ?

    thanks



  • On 28/04/2015 at 02:33, xxxxxxxx wrote:

    Had to bump this, because I had basically the same question.
    Do we need to hook the plugins manually?



  • On 28/04/2015 at 04:18, xxxxxxxx wrote:

    Do you mean an icon for the submenu/folder itself, inside the plugins menu?  I don't think that's possible, just the name..

    It is possible to create your own menu though, ie outside the Plugins menu..

    Also, what you can do with a palette, similar to for example where you can click on the Array object icon on the main toolbar, if you click and hold it opens up a small palette with icons for other objects..



  • On 28/04/2015 at 06:29, xxxxxxxx wrote:

    Hello,

    in case you are talking about adding an icon to a submenu of the existing plugins menu: this is not possible as described in this thread: "add icon to programmatically created submenu".

    Cinema 4D is creating the subfolders of the "Plugins" menu automatically. A subfolder is only created if it contains more than one plugin element. You can organize your plugins folders in subfolders by creating such folders in the actual "plugins" folder of your Cinema installation.

    Finally you could create complete new menus reacting to the C4DPL_BUILDMENU message as described in the documentation.

    Best wishes,
    Sebastian


Log in to reply