Creative Coding in Blender: A Primer

Image for post
Image for post

Configuring Blender for Scripting

Run Blender From The Command Line

Image for post
Image for post
Run Blender from Windows PowerShell.

Scripting Layout

Image for post
Image for post
Select the Scripting Layout.

Tools To Learn the Blender API

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Left: turn on Python Tooltips in User Preferences. Middle: interactive console. Right: pull down the info bar to see the command history.

Choosing and Customizing a Text Editor

Image for post
Image for post
Printing a message to the command-line.
Image for post
Image for post
Using a template script.
Image for post
Image for post
Editing a script in an external editor.

Syntactic Quirks of Python

Image for post
Image for post
Image for post
Image for post
Python’s help functionality accessed through the Command-Line Interface.

Static Geometry

Grid

Image for post
Image for post

Sphere

Image for post
Image for post

Animated Geometry

Image for post
Image for post

Sine Wave

Image for post
Image for post

Rotating Sphere

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Left: Change rotation mode in the GUI. Middle: rotation represented as an axis-angle. Right: as a quaternion.
Image for post
Image for post

Metaballs

Image for post
Image for post
Image for post
Image for post

Easing Between Multiple Values

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Changing An Existing Mesh

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Shaders

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Closures

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Conclusion

Creative coder from Wisconsin, USA.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store