BassMunkee / awd

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

AWD Maya Exporter 1.0 (OSX) exports empty file #33

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a polygon primitive cylinder in Maya 2013 
2. Export model in .awd format
3. Open file with Away3D 4.0.6 (or Prefab3D 2.116)

What is the expected output? What do you see instead?
A 3D model/mesh. Nothing. Appropriate "file loaded" events fire but no geometry 
appears.

What version of the product are you using? On what operating system?
OS X 10.7.4, Maya 2013,  AWD Maya Exporter 1.0, Away3D 4.0.6, Prefab 2.116

Please provide any additional information below.

Using the latest Maya exporter 1.0.0 (OS X) with Maya 2013 I was getting the 
following error:

// Error: line 0: AttributeError: file 
/Users/Shared/Autodesk/maya/plug-ins/pyawd/pyio.py line 13: ‘AWD’ object 
has no attribute ‘mesh_data_blocks’ //

In an attempt to fix the error I modified line 13 of the pyio.py file 
from:
write_blocks(awd.mesh_data_blocks)
to:
write_blocks(awd.tri_geom_blocks)

Maya no longer throws an error when exporting and the resulting .awd file is 
now 30 bytes in size - see attachment - but it is empty.

Also, the trace statement below is from the Maya script Editor:

------------------------------------

import pyawd
print(pyawd.version_str) 
PyAWD v2.0.0a (python)

------------------------------------

Original issue reported on code.google.com by EnriqueP...@gmail.com on 26 Jul 2012 at 4:15

Attachments:

GoogleCodeExporter commented 8 years ago
The problem here is that Maya fails to use the compiled C++ library libawd 
which is the only implementation that actually works at this point. The 
Python-only implementation is far from finished. The question is why it fails 
to use the compiled library.

Can you try to modify the pyawd/core.py code and add the following line right 
after line 86:

86.        except:
87.            raise # ADD THIS LINE
88.            print("Using pure python for writing. Build PyAWD with 
--use-libawd=true")

Then when you try to export a file Python will throw an exception, hopefully 
explaining why libawd couldn't be loaded. Can you paste that exception 
(including full call stack) as a comment to this bug report?

Thanks!

Original comment by bengtric...@gmail.com on 27 Jul 2012 at 8:25

GoogleCodeExporter commented 8 years ago
================================================
export |pCylinder1
================================================
looking in cache for ""
Creating mesh data pCylinderShape1
getting mesh data for |pCylinder1|pCylinderShape1
type: kMesh
- Raw (expanded) data list created
Duration: 0.084311s
- Creating condensed list
Duration: 0.001681s
- DONE! Flipping windings
Duration: 0.000036s
- Creating sub-mesh
- Adding sub-mesh
created material
adding material lambert1
// Error: line 0: ImportError: file 
/Users/Shared/Autodesk/maya/plug-ins/pyawd/core.py line 85: 
dlopen(/Users/Shared/Autodesk/maya/plug-ins/pyawd/cpyawd.so, 2): Library not 
loaded: /usr/local/lib/libawd.dylib
  Referenced from: /Users/Shared/Autodesk/maya/plug-ins/pyawd/cpyawd.so
  Reason: image not found // 
// Result: /Users/username/Desktop/cylinder.awd // 

Original comment by EnriqueP...@gmail.com on 27 Jul 2012 at 3:20

GoogleCodeExporter commented 8 years ago
Ah, of course. I am an idiot, releasing a version with a dynamically linked 
library. I will try to update this ASAP. In the meantime, what you can do is 
compile the libawd library yourself. It should be fairly easy, by following the 
instructions for "Building and installing libawd" at this URL: 
https://code.google.com/p/awd/wiki/SDKBuildInstructions

Original comment by bengtric...@gmail.com on 27 Jul 2012 at 3:30

GoogleCodeExporter commented 8 years ago
any idea when a fixed version of this plugin will be available? i am totally 
dumb in programming but would like to export something from maya

Original comment by miltongi...@gmail.com on 9 Aug 2012 at 5:05

GoogleCodeExporter commented 8 years ago
Hello,
I think I got a similar issue on Windows7:
================================================
export |pCylinder1
================================================
looking in cache for ""
Creating mesh data pCylinderShape1
getting mesh data for |pCylinder1|pCylinderShape1
type: kMesh
- Raw (expanded) data list created
Duration: 0.046000s
- Creating condensed list
Duration: 0.002000s
- DONE! Flipping windings
Duration: 0.000000s
- Creating sub-mesh
- Adding sub-mesh
created material
adding material lambert1
// Error: line 0: ImportError: file 
D:/USERS/timo/MayaSCRIPTS/plugins2013/awd/plug-ins\pyawd\core.py line 85: 
cannot import name cpyawd // 
// E:/.../Away3D/EXPORT/cyTEST.awd //
I can't find any the cpyawd. If I can provide you with some more information 
let me know.
Cheers
Timo

Original comment by tschn...@gmail.com on 18 Sep 2012 at 11:02