bonjorno7 / SourceOps

A more convenient alternative to Blender Source Tools.
GNU General Public License v3.0
138 stars 14 forks source link

smd compile errors #75

Closed KittenOnCatnip closed 2 years ago

KittenOnCatnip commented 2 years ago

`Python: Traceback (most recent call last): File "C:\Users\flyin\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\SourceOps\addon\ops\export_auto.py", line 56, in invoke return self.execute(context) File "C:\Users\flyin\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\SourceOps\addon\ops\export_auto.py", line 76, in execute error = self.export(game, model) File "C:\Users\flyin\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\SourceOps\addon\ops\export_auto.py", line 89, in export error = source_model.export_meshes() File "C:\Users\flyin\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\SourceOps\addon\types\model_export\model.py", line 73, in export_meshes self.export_anim(self.armature, None, self.directory.joinpath('anims', 'idle.SMD')) File "C:\Users\flyin\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\SourceOps\addon\types\model_export\model.py", line 103, in export_anim self.export_smd(armature, [], action, path) File "C:\Users\flyin\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\SourceOps\addon\types\model_export\model.py", line 122, in export_smd smd.from_blender(armature, objects, action) File "C:\Users\flyin\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\SourceOps\addon\types\model_export\smd.py", line 427, in from_blender self.lookup.from_blender(armature) File "C:\Users\flyin\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\SourceOps\addon\types\model_export\smd.py", line 30, in from_blender for bone in armature.data.bones: AttributeError: 'Mesh' object has no attribute 'bones'

location: :-1`

KittenOnCatnip commented 2 years ago

my file https://github.com/KittenOnCatnip/Bilby

bonjorno7 commented 2 years ago

From the error it looks like you selected a mesh as your armature object. Try using an armature instead.

KittenOnCatnip commented 2 years ago

I had the armature setting selected on the export options. now it works thanks.