I run into a strange problem today, but i don’t know if it’s mine or Blenders (2.57.1) fault:
In my script code, i create a vector:
vec = mathutils.Vector((x,y,z))
The script runs fine, until one or more of the components, e.g. z = -1.0.
The the script crashed witth he following error message in the console:
ValueError: mathutils.Vector(): sequence index 2 expected a number, found ‘int’
The error only happens only exactly for -1. I hardcoded -1 into the statement
vec = mathutils.Vector((-1,y,z)) to force the error.
Another “strange” fact is, that the error is thrown every second time i run the script.
Can anybody shed some light on this for me? Did i miss something in the docs?