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!
2
2 comments
David Ehret
3
Error in Part 2, chapter 1, exercise 3
CG Python Academy (Free)
skool.com/cgpython
3D artists learning Blender Python.
Leaderboard (30-day)
Powered by