TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Member-only story

Blender 2.8 Grease Pencil Scripting and Generative Art

--

Quick, Draw! — Flock — Conway’s Game of Life

What: learning the basics of scripting for Blender Grease-Pencil tool, with focus on generative art as a concrete playground. Less talking, more code (commented) and many examples.

Why: mostly because we can. Also because Blender is a very rich ecosystem, and Grease-Pencil in version 2.8 is a powerful and versatile tool. Generative art is a captivating way to showcase the tool potential: if you love Python and don’t feel like learning Processing, or are still unsure about venturing with p5.js or Three.js, here you will find the perfect playground.

Who: Python ≥ 3.6 and Blender 2.8. I took inspiration from other resources on generative art, in particular the book Generative Art by Matt Pearson and the Kadenze online course Generative Art and Computational Creativity.

Where/When: right here, right now. Can also find the complete code here (and Blender utils here).

Setup

In Blender, you can work with code from the Python Console Editor (be sure to make good use of the Autocomplete function)

Python Console Editor

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Alex Martinelli
Alex Martinelli

Written by Alex Martinelli

Data Scientist @ Zalando Dublin - Machine Learning, Computer Vision and Everything Generative ❤

Responses (15)