Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Blender scripts on 2.63a
05-25-2012, 05:30 PM
Post: #1
Blender scripts on 2.63a
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
Visit this user's website Find all posts by this user
Quote this message in a reply
05-25-2012, 07:24 PM
Post: #2
 
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...
Find all posts by this user
Quote this message in a reply
06-01-2012, 08:40 PM
Post: #3
 
The required changes to support 2.6.3 turned out to be minimal, just some renaming. Please check out and test.

In order to view links, you must have to reply to this thread.
Find all posts by this user
Quote this message in a reply
12-08-2017, 06:47 AM
Post: #4
RE:
(06-01-2012 08:40 PM)NaN Wrote: In order to view links, you must have to reply to this thread.The required changes to support 2.6.3 turned out to be minimal, just some renaming. Please check out and test.

In order to view links, you must have to reply to this thread.

Thanks
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)