Activity
Mon
Wed
Fri
Sun
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
What is this?
Less
More

Memberships

CG Python Academy (Free)

907 members • Free

8 contributions to CG Python Academy (Free)
Dominoes
I’ve been playing around a bit with numpy and Blender. I’ve managed to create a scene with falling dominoes arranged in a spiral. Full disclosure – I had a bit of help from AI (ok, a lot of help from AI) in setting up the spiral and rotating the dominoes properly. But I think it looks ok. Thought people might like to see how I did it with rigidbodies. So run the script, and to see the animation, just hit the play button on the Timeline.
Dominoes
0 likes • Jul 7
@Robert McBride You might be right. I actually couldn't remember if I'd manually installed NumPy or not, so I erred on the side of caution. Maybe Blender works with NumPy out of the box?
2 likes • Jul 7
@Christian Coppes Ah, thanks for the clarification!
Greetings!
I have graphic design and programming background so learning Blender and then going on to learn Python for Blender seems a good path for me.
1 like • Jul 5
@Elizabeth Hamilton Welcome! I'm retired too. This site is fantastic for learning new stuff. Great community too. 😄
Capstone Project, Part 2
Here’s my Capstone Project for Part 2 of the Blender Python for Artists course. I’ve extended my Capstone Project for Part 1 to include a choice of four different types of paddock. These can be accessed from a tab in the 3D viewport window after running the script. Other than some help from Chatgtp in working with collections, everything in the script was learned from the course, including class inheritance and nested loops – all in just 393 lines of code. Had so much fun doing this, and it really solidified my understanding of the concepts. Oh, and be sure to have viewport shading set to either Material Preview or Rendered for the full-coloured effect. Also, I'd appreciate any advice on the code. Thanks!
Capstone Project, Part 2
1 like • Jun 2
@Christian Coppes Thanks! Oh, cool idea to have user updates. I'll investigate. Thanks. Yeah, the bricks are indeed unstable (stacked directly on top of each other). I couldn't figure out a way to stagger them. Also maybe for Part 3!
1 like • Jun 3
@Victor Stepanov Thanks! Yes, I'll try that.
Using VS Code
Opening Blender and running a script from VS Code works fine, except when I try to use code with an operator. Then nothing happens. Any suggestions? Thanks.
0 likes • Jun 3
@Victor Stepanov Thanks, good to know!
1 like • Jun 3
@Christian Coppes That worked. Thanks!
Error in Part 2, chapter 1, exercise 3
In this exercise, I’m to add a random colour to a point light and give the light a location. If I run the script repeatedly (after clearing the scene each time), however, I eventually get this error message which crashes the script: Python: Traceback (most recent call last): …line 46, in <module> …line 44, in add_light ValueError: bpy_struct: item.attr = val: sequences of dimension 0 should contain 3 items, not 4 Just wondering what’s happening. I’ve attached my blend file for reference. Thanks!
0 likes • May 7
@Victor Stepanov Ah, such a simple fix! Thanks so much. It was driving me crazy. Because that set of values would only be chosen randomly, the crash was also random. Too bad the Python interpreter doesn't pinpoint the actual line of code where the error occurs. You have the eyes of an eagle.
1-8 of 8
David Ehret
3
33points to level up
@david-ehret-7295
Retired plant scientist, now making video games and animated films with science themes

Active 21h ago
Joined Apr 6, 2025
Vancouver
Powered by