Maya AWD2 Exporter error

Software: Away3D 4.x

Tehn, Newbie
Posted: 30 October 2011 11:31 PM   Total Posts: 7

Hi guys,

I have just started to learn all 3D staff and stopped on Away3D as it has a huge potential. All what I need at the moment is exporting 3D object and animation from Maya to Web, so I decide to look into AWD side.
I have compiled all files that needed and tried to make some export of 3D model that I’ve already had. But now I stuck on this error:

Error: line 0: AttributeError: file C:/Program Files/Autodesk/Maya2012/bin/plug-ins/MayaAWDExporter.py line 870: ‘module’ object has no attribute ‘floor’ //

I would be glad if someone explain me what it means and how to fix it. To clarify all these I will say that I am totally new in 3D.

System:
Windows 7 x64
Last AWD source files

   

Richard Olsson, Administrator
Posted: 06 November 2011 05:17 PM   Total Posts: 1192   [ # 1 ]

What version of Maya are you using?

   

Tehn, Newbie
Posted: 06 November 2011 05:41 PM   Total Posts: 7   [ # 2 ]

Sorry, forgot to mention - Maya 2012 x64

   

Richard Olsson, Administrator
Posted: 06 November 2011 05:50 PM   Total Posts: 1192   [ # 3 ]

Thanks. I can see now that I should have figured that out from the path to your script. smile

I’m sorry but I have no idea why this would happen. The module math does indeed have a method named floor() in Python, so I have no idea why Maya would say that it doesn’t.

Try doing this in the Maya script window:

import math
print( math.floor(2.5) )

Does it throw the same error?

   

Tehn, Newbie
Posted: 06 November 2011 08:05 PM   Total Posts: 7   [ # 4 ]

Output:

import math
print( math.floor(2.5) )
2.0

No error =(

I dont know if it’s related to this topic, but during compiling libraries for AWD I had some bug that has been described by me here: http://code.google.com/p/awd/issues/detail?id=5

   

Morgan, Newbie
Posted: 06 April 2012 06:13 PM   Total Posts: 2   [ # 5 ]

Hi Tehn,

I know its been a long time, but I was having this same issue and it was caused by joint nodes that had duplicate names in my rig.  Renaming the duplicate node names resolved this issue.

   

Shegl, Sr. Member
Posted: 07 April 2012 06:38 AM   Total Posts: 134   [ # 6 ]

Morgan, Tehn, how you compile AWD SDK ?
I have problems.

topic - /forum/viewthread/2287/

   

Tehn, Newbie
Posted: 13 April 2012 01:15 PM   Total Posts: 7   [ # 7 ]
Morgan - 06 April 2012 06:13 PM

Hi Tehn,

I know its been a long time, but I was having this same issue and it was caused by joint nodes that had duplicate names in my rig.  Renaming the duplicate node names resolved this issue.

Thx for the point. I should try it. I will leave my feedback after some tests wink

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X