[go: up one dir, main page]

Menu

Maya Exporter Problems

Feedback
2010-03-11
2013-04-23
  • terence amato

    terence amato - 2010-03-11

    I'm trying to use the exporter but Maya 2009 is reporting that it can not find the file _cytpes

    from maya:
    // Error: No module named _ctypes
    # Traceback (most recent call last):
    #   File "C:/Users/ahrimen/Documents/maya/plug-ins/openctm.py", line 29, in <module>
    #     import ctypes
    #   File "C:\Program Files\Autodesk\Maya2009\bin\python25.zip\ctypes\__init__.py", line 10, in <module>
    # ImportError: No module named _ctypes //
    // Warning: Failed to run file: C:/Users/**/Documents/maya/plug-ins/openctm.py //
    // Error:  (openctm) //

    Is anyone else having this problem or have a solution?

    Thanks

     
  • Marcus Geelnard

    Marcus Geelnard - 2010-03-11

    I can't verify this myself, but according to some forum posts, Maya under 64-bit Windows does not support ctypes (under 32-bit Windows it works, though).

    Personally, I'm a bit confused, because I know that ctypes works well in Blender in my 64-bit Ubuntu set up, so it must be a Windows issue.

     
  • terence amato

    terence amato - 2010-03-11

    I did get it loaded at work, which is on a 32bit XP with maya 2009. Another tweak I needed to do was to hard code the path to the openCTM.dll inside of openCTM.py.

    When I get home tonight I'll see what I can do to get it working there.

     
  • terence amato

    terence amato - 2010-03-12

    I got everything working last night with Maya2009 64bit.

    This is what I had to do:
    1) Compile the openCTM.dll to be 64bit

    2) Installed ‘Python-2.5.amd64.msi’ found here:
    http://www.python.org/download/releases/2.5/

    3) Installed the 64bit version of ctypes “ctypes-1.0.2.win32-py2.5-AMD64.msi” found here:
    https://sourceforge.net/projects/ctypes/files/
    4) Went to my python directory “lib/site-packages” copied everything from there and pasted it in “/{maya install directory}/Maya2009/Python/Lib/site-packages/”

    5) Updated maya.env file, in Vista it is located in “c:/users/{user}/documents/maya/2009/” and added
    PYTHONPATH = “C:\Program Files\Autodesk\Maya2009\Python”
    PYTHONHOME = “C:\Program Files\Autodesk\Maya2009\Python\Lib\site-packages”

    6) Copied openctm.py to my scripts location
    7) Copied openctm_translator.py to my plug-in location
    8) Changed openctm.py so that WinDLL() pointed directly to the installed location of openctm.dll

    9) Started up maya, loaded the plug-in and it worked!

    This site is where most of this information was found:
    http://jafounet.free.fr/?p=29

     

Log in to post a comment.