Getting Started on Blender Scripting
摘要
Just about any action you perform by hand in Blender can be automated with a script. In this chapter, I’ll introduce you to Blender’s built-in scripting interface, which includes the Python Console and the Text Editor. The Python Console is a convenient way to experiment with individual commands and see their effects in real time, whereas the Text Editor is great for editing and running scripts from files. We’ll start by playing with API functions from the Python Console and observe immediate feedback happening in the viewport, followed by running one of Blender’s built-in Template scripts in the Text Editor and observing its effects. Along the way, I will show you a variety of developer features that will help you discover which Python operator is behind a Blender menu item or hotkey and how to easily look up its implementation.