Blender Python Game Weapon Generator: Part 1
摘要
In this chapter and the next, we’ll dive right in and implement a game weapon generator with parametric controls. In case you are new to Blender Python, we’ll first take a tour of the Scripting workspace, which includes a built-in Text Editor for editing and running scripts, a custom Python Console streamlined for accessing the Blender Python API, and an Info Editor that (with developer configs) logs every operator call whether invoked interactively by the user via hot keys/menus or through Python. We’ll then do a high-level overview of bpy and bmesh, which are Blender Python’s built-in modules for mesh editing, and experiment with manipulating the startup cube by calling operators in the console and watching the mesh change in real time in the 3D Viewport.