Blender scripts on 2.63a - Timo 6 - 05-25-2012
The blender .joe, .jpk and .trk import scripts don't seem to work on blender 2.63a. Errors like this are generated - For .trk:
Code: 25/05/2012 22:16:10.409 [0x0-0x1dd1dd].org.blenderfoundation.blender: Traceback (most recent call last):
25/05/2012 22:16:10.409 [0x0-0x1dd1dd].org.blenderfoundation.blender: File "/Users/timothyfurlong/Library/Application Support/Blender/2.63/scripts/addons/vdrift.py", line 1042, in execute
25/05/2012 22:16:10.409 [0x0-0x1dd1dd].org.blenderfoundation.blender: roads.load(filepath)
25/05/2012 22:16:10.409 [0x0-0x1dd1dd].org.blenderfoundation.blender: File "/Users/timothyfurlong/Library/Application Support/Blender/2.63/scripts/addons/vdrift.py", line 610, in load
25/05/2012 22:16:10.409 [0x0-0x1dd1dd].org.blenderfoundation.blender: roads.load_road(file, 'road.' + str(i))
25/05/2012 22:16:10.409 [0x0-0x1dd1dd].org.blenderfoundation.blender: File "/Users/timothyfurlong/Library/Application Support/Blender/2.63/scripts/addons/vdrift.py", line 631, in load_road
25/05/2012 22:16:10.409 [0x0-0x1dd1dd].org.blenderfoundation.blender: mesh.faces.add(patchnum * 3)
25/05/2012 22:16:10.409 [0x0-0x1dd1dd].org.blenderfoundation.blender: AttributeError: 'Mesh' object has no attribute 'faces'
25/05/2012 22:16:10.409 [0x0-0x1dd1dd].org.blenderfoundation.blender: location:<unknown location>:-1
25/05/2012 22:16:10.409 [0x0-0x1dd1dd].org.blenderfoundation.blender: location:<unknown location>:-1
For .joe:
Code: 25/05/2012 22:16:32.813 [0x0-0x1dd1dd].org.blenderfoundation.blender: Traceback (most recent call last):
25/05/2012 22:16:32.813 [0x0-0x1dd1dd].org.blenderfoundation.blender: File "/Users/timothyfurlong/Library/Application Support/Blender/2.63/scripts/addons/vdrift.py", line 934, in execute
25/05/2012 22:16:32.813 [0x0-0x1dd1dd].org.blenderfoundation.blender: joe.to_mesh(bpy.path.basename(filepath), image)
25/05/2012 22:16:32.813 [0x0-0x1dd1dd].org.blenderfoundation.blender: File "/Users/timothyfurlong/Library/Application Support/Blender/2.63/scripts/addons/vdrift.py", line 287, in to_mesh
25/05/2012 22:16:32.813 [0x0-0x1dd1dd].org.blenderfoundation.blender: frames.append(self.frames[i].to_mesh(name, image))
25/05/2012 22:16:32.813 [0x0-0x1dd1dd].org.blenderfoundation.blender: File "/Users/timothyfurlong/Library/Application Support/Blender/2.63/scripts/addons/vdrift.py", line 216, in to_mesh
25/05/2012 22:16:32.813 [0x0-0x1dd1dd].org.blenderfoundation.blender: mesh.faces.add(len(self.faces))
25/05/2012 22:16:32.813 [0x0-0x1dd1dd].org.blenderfoundation.blender: AttributeError: 'Mesh' object has no attribute 'faces'
25/05/2012 22:16:32.813 [0x0-0x1dd1dd].org.blenderfoundation.blender: location:<unknown location>:-1
25/05/2012 22:16:32.813 [0x0-0x1dd1dd].org.blenderfoundation.blender: location:<unknown location>:-1
And for .jpk:
Code: 25/05/2012 22:24:58.180 [0x0-0x1dd1dd].org.blenderfoundation.blender: Traceback (most recent call last):
25/05/2012 22:24:58.180 [0x0-0x1dd1dd].org.blenderfoundation.blender: File "/Users/timothyfurlong/Library/Application Support/Blender/2.63/scripts/addons/vdrift.py", line 1008, in execute
25/05/2012 22:24:58.180 [0x0-0x1dd1dd].org.blenderfoundation.blender: jpk.to_mesh()
25/05/2012 22:24:58.180 [0x0-0x1dd1dd].org.blenderfoundation.blender: File "/Users/timothyfurlong/Library/Application Support/Blender/2.63/scripts/addons/vdrift.py", line 338, in to_mesh
25/05/2012 22:24:58.180 [0x0-0x1dd1dd].org.blenderfoundation.blender: obj = joe.to_mesh(name, image)
25/05/2012 22:24:58.180 [0x0-0x1dd1dd].org.blenderfoundation.blender: File "/Users/timothyfurlong/Library/Application Support/Blender/2.63/scripts/addons/vdrift.py", line 287, in to_mesh
25/05/2012 22:24:58.180 [0x0-0x1dd1dd].org.blenderfoundation.blender: frames.append(self.frames[i].to_mesh(name, image))
25/05/2012 22:24:58.180 [0x0-0x1dd1dd].org.blenderfoundation.blender: File "/Users/timothyfurlong/Library/Application Support/Blender/2.63/scripts/addons/vdrift.py", line 216, in to_mesh
25/05/2012 22:24:58.180 [0x0-0x1dd1dd].org.blenderfoundation.blender: mesh.faces.add(len(self.faces))
25/05/2012 22:24:58.180 [0x0-0x1dd1dd].org.blenderfoundation.blender: AttributeError: 'Mesh' object has no attribute 'faces'
25/05/2012 22:24:58.181 [0x0-0x1dd1dd].org.blenderfoundation.blender: location:<unknown location>:-1
25/05/2012 22:24:58.181 [0x0-0x1dd1dd].org.blenderfoundation.blender: location:<unknown location>:-1
- NaN - 05-25-2012
The blender devs enjoy breaking the python api. Would be boring otherwise. :lol:
The real reason is that they finally integrated ngon support(bmesh) and broke the api due to it. Not sure how much I'll have to rewrite. But I guess the old Mesh api is gone...
- NaN - 06-01-2012
The required changes to support 2.6.3 turned out to be minimal, just some renaming. Please check out and test.
https://github.com/VDrift/blender-scripts/tree/master/blender25
|