简介

    Python脚本是一种强大而灵活的用于扩展Blender功能的方法。Blender的大部分功能都可以脚本化,包括动画、渲染、导入与导出、创建物体和自动重复任务的脚本。

    脚本可以利用紧密集成的API(Application Programming Interface)与Blender进行交互。

    对写脚本有帮助的链接:

    • - 关于Python的基本信息。

    • Blender Python API — Official API documentation. Use this for referencing while writing scripts.

    • — A short introduction to get you started with the API. Contains examples.

    用于发布脚本的链接:

    • 分享脚本 - 关于如何共享脚本与使脚本加入官方发布版Blender。

    • - 封装和发布脚本。

    • 插件项目 - 维护Blender核心扩展仓库的项目。

    手册链接

    以下链接包含从基础到进阶的Blender Python脚本。

    外部链接

    下面的外部链接包含了很多学习资料,包括如何开始编写Blender脚本:

    Add-ons are scripts that enable Blender to gain extra functionality, they can be enabled from the .

    Outside of the Blender executable, there are hundreds of add-ons written by many people:

    • Blender会捆绑一些官方插件。

    • Other Testing add-ons are included in development builds of Blender but not official releases. Many of them work reliably and are very useful but are not yet ensured to be stable for release.

    See also

    Blender内置插件见 文档。

    Modules

    Utility libraries for import into other scripts.

    Presets

    Settings for Blender’s tools and key configurations.

    Startup

    These files are imported when starting Blender. They define most of Blender’s UI, as well as some additional core operators.

    Custom Scripts

    In contrast to add-ons they are typically intended for one-time execution via the Text Editor.

    文件位置

    所有脚本都从 下的 文件夹载入。

    你可以在 文件路径 用户设置 ‣ 文件路径 中设置额外的脚本查找路径。

    安装

    通过Blender 可以很方便地安装插件。单击 安装… 按钮,并选择 .py 或 文件。

    要手动安装脚本或插件,可视具体类型将其放置到 add-ons, , presets 或 目录。参考上文所述。

    你还可以在 文本编辑器 中载入并运行脚本。