I’ve been plowing through Automate the Boring Stuff with Python by Al Sweigart. Since I generally skip over chapters with scary names or giant blocks of text, the bit about nested dictionaries and lists went blazing right over my head. But when I wanted to start shaping objects in Blender into letters (as pictured above), I went right back to it because they’re actually quite useful.
Continue reading “Python: What are Nested Lists?”
So you want to get a text file with the coordinates of all the objects in a Blender scene? Luckily, Python has some wonderful built-in functions that can do exactly that.
Continue reading “Python: How to Put Blender Data into a Text File”
I like shift ciphers as much as the next guy but Caesar is just so damn obvious. If you’re sending a giant wall of nonsense letters to a friend in an email, you might as well wave a giant neon-colored flag around that says “HEY I’M A SHADY BASTARD” to any third parties that might stumble upon it.
A proper cipher should have some form of camouflage. Like a sweet little house on a hill. With fireflies hanging out.
Continue reading “Python: How to Cipher in Blender”
Yet another way in which Python is magic—this scene of exploding lights would have taken me hours to model if I was manually, painstakingly inputting keyframes for every object.
Python can do it in less than 2 minutes.
Continue reading “Python: Automating Animation in Blender”
Modeling randomness in Blender can be frustrating. But once I figured out I could use Python to generate random numbers, it got a lot easier.
For this week’s project, I made 200 lights around my little bug using a simple loop, some variables, and a Python module.
Continue reading “Python: How to Make Hundreds of Random Lights in Blender”
Ok, let’s start up by opening up the Python Console. Go to your Editor Type selector, and it’ll be the first option that pops up.
Continue reading “Python: How to Start Scripting in Blender”