BassMunkee / awd

Automatically exported from code.google.com/p/awd
Apache License 2.0
0 stars 0 forks source link

Blender export: error in exporting mesh with armature #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run steps to install both sdks (with mac os X) and install exporter in 
blender
2. try to export an object with armature

What is the expected output? What do you see instead?
I expected to get an exported object.

Instead I got this in terminal:

{'embed_textures': True, 'include_attr': True, 'include_materials': True, 
'filepath': '/Users/user/Downloads/terrapin.awd'}
Traceback (most recent call last):
  File "/Applications/blender.app/Contents/MacOS/2.61/scripts/addons/io_awd/__init__.py", line 62, in execute
    exporter.export(context, **kwds)
  File "/Applications/blender.app/Contents/MacOS/2.61/scripts/addons/io_awd/awd_export.py", line 78, in export
    self.export_skeleton(o)
  File "/Applications/blender.app/Contents/MacOS/2.61/scripts/addons/io_awd/awd_export.py", line 300, in export_skeleton
    joint = AWDSkeletonJoint(b.name)
  File "/Applications/blender.app/Contents/MacOS/2.61/python/lib/python3.2/pyawd/anim.py", line 91, in __init__
    if self.inv_bind_mtx is None:
AttributeError: 'module' object has no attribute 'AWDMatrix4x4'

I just added "from pyawd.utils import math" and changed line 91 to 
"utils.math.AWDMatrix4x4()") and this fixed the issue. 

After that I got this error concerning texture:
{'embed_textures': True, 'include_attr': True, 'include_materials': True, 
'filepath': '/Users/user/Downloads/terrapin.awd'}
Creating mesh terrapin
Checking materials for terrapin
Traceback (most recent call last):
  File "/Applications/blender.app/Contents/MacOS/2.61/scripts/addons/io_awd/__init__.py", line 62, in execute
    exporter.export(context, **kwds)
  File "/Applications/blender.app/Contents/MacOS/2.61/scripts/addons/io_awd/awd_export.py", line 75, in export
    self.export_mesh(o)
  File "/Applications/blender.app/Contents/MacOS/2.61/scripts/addons/io_awd/awd_export.py", line 260, in export_mesh
    awd_tex.embed_file( bpy.path.abspath( bl_img.filepath ))
  File "/Applications/blender.app/Contents/MacOS/2.61/python/lib/python3.2/pyawd/material.py", line 16, in embed_file
    with open(path, 'rb') as f:
IOError: [Errno 2] No such file or directory: 
'C:/Users/User/Desktop/avatar/Tortue Malaclemys 
terrapin/textures/2010-12-16_terrapin_texture.png'

Basically I don't know anything about blender so I just re-added the texture 
file with correnct path. I have no idea what's behind this.

After that I ran into something that I cannot go around:

{'embed_textures': True, 'include_attr': True, 'include_materials': True, 
'filepath': '/Users/secpelle/Downloads/terrapin.awd'}
Creating mesh terrapin
Checking materials for terrapin
Found texture to create material?
Yes! Created material!
Traceback (most recent call last):
  File "/Applications/blender.app/Contents/MacOS/2.61/scripts/addons/io_awd/__init__.py", line 62, in execute
    exporter.export(context, **kwds)
  File "/Applications/blender.app/Contents/MacOS/2.61/scripts/addons/io_awd/awd_export.py", line 90, in export
    self.extract_joint_weights(o)
  File "/Applications/blender.app/Contents/MacOS/2.61/scripts/addons/io_awd/awd_export.py", line 122, in extract_joint_weights
    vert_indices = self.vertex_indices[geom.name]
AttributeError: 'AWDExporter' object has no attribute 'vertex_indices'

I looked at the source code and saw the self.vertex_indices initialization line 
commented but uncommenting that doesn't make any sense since nothing is added 
to the dictionary.

Is the armature export supported by the awd blender exporter at the moment?

What version of the product are you using? On what operating system?

I'm using the latest clone from this repo (4f8060f66b83), Mac os X 10.6.8, and 
Blender 2.61

Original issue reported on code.google.com by therauli@gmail.com on 29 Dec 2011 at 5:15

GoogleCodeExporter commented 8 years ago
I have this same problem. It seems that AWDMatrix4x4() doesn't exist.

Original comment by francisc...@gmail.com on 14 Feb 2013 at 4:31

GoogleCodeExporter commented 8 years ago
The blender exporter is WIP. It is not a release version, and is actually 
nowhere near release status. You're using it straight from the source 
repository. Hence, issues like these are expected, as the version that has been 
checked in is not compatible with the latest version of the PyAWD library on 
which it depends.

Original comment by bengtric...@gmail.com on 14 Feb 2013 at 4:34

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Is there any way to do it works on Blender?

Original comment by francisc...@gmail.com on 14 Feb 2013 at 10:26

GoogleCodeExporter commented 8 years ago
I'm afraid that no, there is not, unless you want to program it yourself that 
is. The blender exporter has not been priority for a while. I have no timeline 
for when it will be usable.

Original comment by bengtric...@gmail.com on 15 Feb 2013 at 9:05