文本编辑器

This editor can be used to write Python scripts, Open Shading Language scripts, or just plaintext notes. To open it, you can switch to the Scripting workspace or press Shift-F11 to replace the current editor.

主视图

敲击键盘可以在文本缓存中输入文本。

跟平常一样,按下拖动并松开 LMB 用于选择文本。按下 RMB 打开上下文菜单。

Tip

在你想要分享你的 blend 文件的时候,文本编辑器也很方便:你可以留下注释,解释文件的结构。保存时请确保编辑器可见,以便他人看到!

用法

运行脚本

The most notable keystroke is Alt-P which executes the current text as a Python script. You can access not just the standard Python modules, but also a whole bunch of Blender-specific ones; see 脚本与扩展 Blender.