📜  blender bl_info (1)

📅  最后修改于: 2023-12-03 14:59:31.843000             🧑  作者: Mango

Blender bl_info

Blender is a free and open-source 3D creation software that is used for creating animated films, visual effects, art, 3D printed models, motion graphics, interactive 3D applications, and video games. It is written in C, C++, and Python programming languages and is widely used by professionals and amateurs alike.

The bl_info function is an important part of Blender's add-on development process. It provides information about an add-on's name, description, version, author, license, and other details that are used by Blender to manage the add-on.

Usage

The bl_info function should be included in the Python file that contains the add-on's code. Here is an example of how the bl_info function can be defined:

bl_info = {
    "name": "My Addon",
    "description": "This addon does something really cool.",
    "author": "John Doe",
    "version": (1, 0, 0),
    "blender": (2, 79, 0),
    "location": "View3D > Sidebar > My Addon",
    "warning": "",
    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
                "Scripts/My_Script",
    "category": "3D View"
}

The bl_info function should be a dictionary that contains the following keys:

  • name: The name of the addon.
  • description: A brief description of what the addon does.
  • author: The name of the addon's author.
  • version: The version number of the addon, as a tuple of integers.
  • blender: The version of Blender that the addon is compatible with, as a tuple of integers.
  • location: The location of the addon in Blender's UI.
  • warning: Any warning messages that should be displayed when the addon is enabled.
  • wiki_url: A URL to the addon's documentation.
  • category: The category of the addon.
Markdown

Here is an example of how the bl_info function can be returned in Markdown format:

```python
bl_info = {
    "name": "My Addon",
    "description": "This addon does something really cool.",
    "author": "John Doe",
    "version": (1, 0, 0),
    "blender": (2, 79, 0),
    "location": "View3D > Sidebar > My Addon",
    "warning": "",
    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
                "Scripts/My_Script",
    "category": "3D View"
}

The bl_info function should be a dictionary that contains the following keys:

  • name: The name of the addon.
  • description: A brief description of what the addon does.
  • author: The name of the addon's author.
  • version: The version number of the addon, as a tuple of integers.
  • blender: The version of Blender that the addon is compatible with, as a tuple of integers.
  • location: The location of the addon in Blender's UI.
  • warning: Any warning messages that should be displayed when the addon is enabled.
  • wiki_url: A URL to the addon's documentation.
  • category: The category of the addon.