简介¶
Python是一门面向对象的、交互的解释型编程语言。它集成了模块、异常、动态类型、高水平的动态数据类型和类。Python兼具强大的功能和清晰的语法。
Python脚本是一种强大而灵活的用于扩展Blender功能的方法。Blender的大部分功能都可以脚本化,包括动画、渲染、导入与导出、创建物体和自动重复任务的脚本。
脚本可以利用紧密集成的API(Application Programming Interface)与Blender进行交互。
常规资料¶
对写脚本有帮助的链接:
Python.org - 关于Python的基本信息。
Blender Python API -- Official API documentation. Use this for referencing while writing scripts.
API Introduction -- A short introduction to get you started with the API. Contains examples.
用于发布脚本的链接:
扩展Blender¶
插件¶
Add-ons are scripts that enable Blender to gain extra functionality, they can be enabled from the Preferences.
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内置插件见 插件 文档。
脚本¶
Apart from add-ons, there are several other types of scripts that extend Blender's functionality:
- 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.