Recording a macro in Python

Let's look at using Python in Blender to write a script that makes plant alpha cards. Blender is written in a mix of C, C++, and Python programming languages. It includes lots of tools to let someone experienced in Python write their own code snippets, macros, and add-ons. Even for someone scared of coding, Blender provides everything you need to write macros to automate your task. Let's look at the interface and tools for using Python in Blender, and then walk through a simple code solution for creating alpha cards out of hair. For a deeper dive on Python, We recommend Getting Started with Python, by Fabrizio Romano, available from Packt.

Start a new Blender scene, and click on the Scripting workspace. This includes ...

Get Blender 3D By Example - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.