Okay, so I have tried figuring this our for myself, but to no avail - both the inset and the solidify scripts make use of the reduce() function, and it works in Blender 2.48 and Python 2.5.
However, I am now working with Blender 2.49 and python 2.6 - and both scripts stopped working (applying solidify on curved surfaces fails). This is a big problem for me, since I tend to use both a LOT. Of course, I could switch to 2.48, apply the functions, and so on, and so forth, but that’s a pain.
So: can anyone please explain to me why these two scripts stopped working? What’s the solution? It seems the reduce() function is no longer available.
File “<string>”, line 1, in <module>
File “F:\download\Blender 3D Tut\py scripts uinbels\Inset.1.py”, line 281, in <module>
File “F:\download\Blender 3D Tut\py scripts uinbels\Inset.1.py”, line 265, in MeshCheck
File “F:\download\Blender 3D Tut.blender\scripts\bpymodules\BPyMesh.py”, line 1078, in mesh
average_no= functools.reduce(lambda a,b: a+b, fnos, Vector())
AttributeError: ‘module’ object has no attribute ‘reduce’
bevel in 0.001077 sec