How are plugins categorized?

Regarding the categories into which plugins are categorized:

image

How are these assigned, and can they be changed?

thanks!

Each individual add-on declares which category it should be in, as part of the bl_info.

For an example, have a look at the template ā€œAddon Add Objectā€ from the templates in the scripting page in blender. You will see in its bl_info it has

"category": "Add Mesh",

So it shows up in the Add Mesh category in the add-on preferences.

For your own add-ons you can set this value to whatever you want, so you can easily create new categories for your own add-ons.
For example you could have:

"category": "My Super Special Addon",

And when you install the addon, ā€œMy Super Special Addonā€ will show up in the list of categories.

If you have a third-party add-on and you want to change which category it appears in when you install it, then you need to edit the bl_info before you install it.

1 Like

Thanks!

Any idea if multiple categories can be assigned?

Itā€™s a key value pair in the bl_info structureā€¦ like so:

bl_info = {
    "name": "My Test Add-on",
    "blender": (2, 80, 0),
    "category": "Object",
}

ā€¦soā€¦ :thinking: ā€¦something like "category": "Object, Mesh", would make up a new category Object, Mesh ā€¦ ( ā† the comma would be part of the name ) but i havenā€™t tested thisā€¦

1 Like

Thanks again. Going to experiment a bitā€¦ this looks like it could be a reasonable alternative to not being able to put things into multiple categories through the preferences interface.

A bit clunky, and requires a re-install of a plugin, but heyā€¦ if it worksā€¦

Just to clarify, this canā€™t be done after the plugin is installed, correct?

Itā€™s read on installā€¦ and you can re-read the addon folder (scripts/addon) with the Refresh buttonā€¦ but no runtime -changesā€¦
ā€¦wellā€¦ :thinking: ā€¦ AFAIK

:thinking: :thinking: :thinking: