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!