Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blender export: AttributeError: 'Mesh' object has no attribute 'faces' #52

Open
GoogleCodeExporter opened this issue Jan 5, 2016 · 4 comments

Comments

@GoogleCodeExporter
Copy link

adw_export.py uses the old interface "faces". 
Should be "tessfaces" now.

http://www.blender.org/documentation/blender_python_api_2_62_2/info_gotcha.html#
ngons-and-tessellation-faces


@awd_export.py line 343:

      # Generate expanded list of vertices
-        for f in geom.faces:
+        for f in geom.tessfaces:
            inds_in_face = [0,2,1]


Detailed error:

{'embed_textures': True, 'include_attr': True, 'include_materials': True, 
'filepath': '/untitled.awd'}
Creating mesh Cube
Traceback (most recent call last):
  File "/opt/blender-2.64a-linux-glibc27-x86_64/2.64/scripts/addons/io_awd/__init__.py", line 62, in execute
    exporter.export(context, **kwds)
  File "/opt/blender-2.64a-linux-glibc27-x86_64/2.64/scripts/addons/io_awd/awd_export.py", line 75, in export
    self.export_mesh(o)
  File "/opt/blender-2.64a-linux-glibc27-x86_64/2.64/scripts/addons/io_awd/awd_export.py", line 216, in export_mesh
    md = self.build_mesh_data(o.data)
  File "/opt/blender-2.64a-linux-glibc27-x86_64/2.64/scripts/addons/io_awd/awd_export.py", line 343, in build_mesh_data
    for f in geom.faces:
AttributeError: 'Mesh' object has no attribute 'faces'

Original issue reported on code.google.com by Schindle...@gmail.com on 3 Dec 2012 at 7:08

@GoogleCodeExporter
Copy link
Author

The blender exporter is in a work-in-progress state and is not intended for use 
at this time.

Original comment by bengtric...@gmail.com on 3 Dec 2012 at 9:30

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

i changed the blender exporter, so it exports our files again. 

It exports all objects. 
It exports materials if they have a texture. 
Bitmaps must be linked in a material to export.
UV-Mapping works fine, but could be optimized for a better awd-file-size.

Not working: 
everything else :) 
There is a matrix converter, that is broken. 
i don't know what this is for, but i didn't need it, or it just worked good 
enough for our files.




Original comment by Schindle...@gmail.com on 6 Dec 2012 at 3:38

@GoogleCodeExporter
Copy link
Author

BugFix: UV-Mapping is mirrored

Original comment by Schindle...@gmail.com on 6 Dec 2012 at 5:02

Attachments:

@GoogleCodeExporter
Copy link
Author

... 8 weeks later :) ... now i know the problem was not a inverted UV-Map. It 
was a inverted x coordinates. 

So the UV-mapping and the VertexIndex (0,2,1) was right.
Here is the new dif, with correct "x" and "UV-Mapping" .


Original comment by Schindle...@gmail.com on 15 Feb 2013 at 2:04

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant