i got told today by some user of a script of mine that it does no more work on blender 2.40 final. i poked through the code but it does not make sense at all. the following code:
self.bones.append( DEBone( self.armature.bones[index].name, index ) )
produces error:
Traceback (most recent call last):
File “<string>”, line 663, in fileDialogCallback
File “<string>”, line 398, in export
File “<string>”, line 351, in initExporterObjects
File “<string>”, line 242, in initAddVertFaceEdge
AttributeError: ‘NoneType’ object has no attribute ‘name’
armature is the armature object i have in the scene and is the armature data, not the armature object. ‘index’ simply iterates over 0 'til length of bones list. the strange thing here is that the ‘bones’ list seems to store a ‘None’ object as bone.
i have no idea how it can happen that the armature has a ‘None’ bone object? has the interface majorly changed or is there a bug in the new python modul?
( i can not test myself as blender 2.40 is not yet in gentoo portage )