Home > crysis, update > MayaCGF now with animation support!

MayaCGF now with animation support!

Well, it’s been a long time in the making, but the new version of MayaCGF (the Maya exporter for Crysis), is finally ready for open beta testing. And as you guessed from the title of this post, it features preliminary support for animated characters. You can find all the technical information here.

Here is a video preview of the workflow to export an animated model. Enjoy!

Categories: crysis, update Tags:
  1. the_idiot
    October 6th, 2009 at 18:20 | #1

    Hi!

    Great job! This was needed =). I have a few question though. When I execute the cgf i get an error that says:

    Error: No modeule named cgf_import
    Traceback (most recent call last):
    File “”, line 1, in
    ImportError: No modeule named cgf_import #

    Furethermore I didn’t have a plugin folder om the maya folder in “My documents”, so I created one and put the cgf_export.py in it. I have installed python 2.5, PyFFI, colladaCGF and Collada Nextgen. I’m using Maya 2009 x64 on Windows 7 RTM x64.

    I hope you can help me
    Thanks!

  2. Seith
    October 6th, 2009 at 22:47 | #2

    That’s weird. I don’t know anything about Vista or Windows 7 (I’m on XP), but I’m very surprised the plugin folder is missing… Can you provide me with more details about the error messages in the script editor?

  3. the_idiot
    October 7th, 2009 at 18:34 | #3

    Hi againg. i actually managed to fix it. I tried installing Maya 2009 x86 on my computer at home, and it worked just fine. I then tried to install the x64 version, but PyFFI and ColladaCGF couldn’t seem to find the 64-bit version of Maya, so there where a lot of files missing from the CGF and PyFFI folders in the Autodesk Maya folder. So now I have Maya 2009 32-bit installed instead, and it works great! =) Thanks again for the plug-in =)

  4. jawad Altabtabai
    October 11th, 2009 at 10:32 | #4

    Hello Seith,

    I was wondering if this plugin would work on Mac osX. and if so where would you put the files ?
    Great stuff :) Thanks,

    Jawad

  5. Seith
    October 11th, 2009 at 11:02 | #5

    @the_idiot: Cool. I know that ColladaCGF and PyFFI don’t have really robust installers yet; they’re not yet capable of detecting any and every form of Windows/Maya combinations. Glad you god it to work for you.

    @Jawad: Well, since Crysis is only for PC, you wouldn’t be able to create the .chr or .cgf files: the Collada files exported by Maya need to be compiled by the Crytek compiler in order to be usable by Crysis, but there is no compiler (and no Crysis!) for MacOSX…

  6. jawad Altabtabai
    October 12th, 2009 at 01:49 | #6

    Hello Again Seith,

    Thanks for the clarification.

    I have been trying to install the ColladaCGF but it tells me that I need to install the collada plugin for maya. I did that but still everytime I run the CGF installer it asks for it. another thing, the CGF installer tries to direct me to the colladamaya installer but its blank. any idea what I should do ?

  7. Funkenstein
    October 14th, 2009 at 06:19 | #7

    @ Seith: Exporter is working perfectly for me so far. My question is would be be able to get
    the global scaler back? I dont really like working on a rig at such a small scale. Was there a reason for taking it out? Thanks ^^

    @jawad: Im not sure if this this applies to you but on http://www.crymod.com Seith said something about installing this:

    4) (Optional) If you cannot load the COLLADAMaya.mll plugin in Maya, you need to install Microsoft Visual C++ 2005 Service Pack 1 Redistributable: http://www.microsoft.com/downloads/detai…&displaylang=en

    Link to the actual post:
    http://www.crymod.com/thread.php?postid=605115#post605115

  8. October 24th, 2009 at 08:07 | #8

    Hello , any support for x64 version?

  9. October 24th, 2009 at 10:46 | #9

    ohh so seems like ColladaCGF is the problem , hmm noted thanks

  10. October 24th, 2009 at 14:24 | #10

    Here are instructions for those who have problem with x64 or any problem at all

    Install Python 2.5.4 – http://www.python.org/download/releases/2.5.4/ – For x86 processors: python-2.5.4.msi
    Install PyFFI – http://sourceforge.net/projects/pyffi/files/pyffi/2.0.0/ – PyFFI-py2.5-2.0.0-windows.exe
    Install COLLADA for Maya – http://sourceforge.net/projects/colladamaya/files/ – ColladaMaya_FREE_3.05C.exe
    Download ColladaCGF – http://sourceforge.net/projects/colladacgf/files/colladacgf/0.3.7/
    And folow this instructions

    * 1) Close Maya if it’s open.

    * 2) Put mayaCGF.mel in your Maya scripts directory (e.g.: My Documents/maya/200x/scripts).

    * 3) Put the mayaCGF.bmp and mayaCGF_banner.bmp files in your My Documents/maya/200x/prefs/icons directory.

    * 4) Put cgf_import.py in Maya’s Python directory (e.g.: x:/Program Files/Autodesk/Maya200x/Python).

    * 5) Copy the ColladaCGF directory to your Maya’s Python site-packages folder
    (e.g.: x:/Program Files/Autodesk/Maya200x/Python/Lib/site-packages)

    * 6) In Maya’s script editor execute: source “mayaCGF.mel”; mayaCGF;

    If you get an error like :
    “line 1, in
    ImportError: No modeule named cgf_import # ”

    Copy –
    x:\Python25\Lib\site-packages\
    pyffi folder into –
    x:\Program Files\Autodesk\Maya200x\Python\lib\site-packages\ or
    x:\Program Files (x86)\Autodesk\Maya200x\Python\lib\site-packages\

    And

    Install Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)

    http://www.microsoft.com/downloads/details.aspx?familyid=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en

    It works , i’ve tested on maya 2009 x64 under vista x64

  11. October 24th, 2009 at 14:26 | #11

    wanted to point this thing out for

    Download ColladaCGF – http://sourceforge.net/projects/colladacgf/files/colladacgf/0.3.7/ – ColladaCGF-0.3.7.zip

    forgot to mention

  12. Shipwreck
    October 30th, 2009 at 07:43 | #12

    Hi Seith!
    Thanks for making the exporter.
    I’m having trouble exporting out a .cgf (static model)

    I’m running XP, Maya 2008, I have mayaCGF (Beta 1v).

    I’m creating a poly mesh, throwing a blinn on it, grouping it, freezing transforms. Then when I go to Export I keep getting this:

    // Warning: Some characters in the new name were converted to ‘_’. //
    Overwriting .mtl file…
    # Error: [Error 3] The system cannot find the path specified
    # Traceback (most recent call last):
    # File “”, line 1, in
    # File “C:/Documents and Settings/*********/My Documents/maya/scripts\cgf_export.py”, line 1435, in mayaCGFExport
    # compileCryDaeFile(exportPath + shortName + “_cry.dae”, _rcVersion, exportMaterial)
    # File “C:/Documents and Settings/**********/My Documents/maya/scripts\cgf_export.py”, line 88, in compileCryDaeFile
    # subprocess.call(compilerCmd, stdout=rcout)
    # File “C:\Program Files\Autodesk\Maya2008\bin\python25.zip\subprocess.py”, line 443, in call
    # return Popen(*popenargs, **kwargs).wait()
    # File “C:\Program Files\Autodesk\Maya2008\bin\python25.zip\subprocess.py”, line 593, in __init__
    # errread, errwrite)
    # File “C:\Program Files\Autodesk\Maya2008\bin\python25.zip\subprocess.py”, line 815, in _execute_child
    # startupinfo)
    # WindowsError: [Error 3] The system cannot find the path specified #

    Then it just sits there and I have to run

    progressWindow -endProgress;

    Any help would be great.
    I’ve also got Crysis, Crysis Wars (with patch 1.4, 1.5, and the mod SDK…all three installed, source, sdk, and tools), Python 2.6, and OpenCOLLADA plugin for Maya.

    What am I missing?

    Thanks in advance for the help

  13. Seith
    October 30th, 2009 at 10:18 | #13

    @Shipwreck: It seems you’ve got everything. Windows is just telling you it cannot access the path of the Collada file. It looks like the path you’re exporting to is not accessible. It could be that the Collada export failed. You should make sure that there is a file named “[name_of_your_model]_cry.dae” in the destination folder. That is the file that gets compiled to create the .chr/.cgf files. If it does not exist, this error will happen. In the next beta release MayaCGF will exit gracefully and tell you it cannot find the specified file.

  14. yuri
    January 25th, 2010 at 19:17 | #14

    It`s imported only cdf`s for me. And seems that only partially. Export work`s fine.

    # Error: Error occurred during execution of MEL script
    # Traceback (most recent call last):
    # File “”, line 1, in
    # File “D:\Program Files\Autodesk\Maya2009\Python\lib\site-packages\cgf_import.py”, line 812, in fileselect_callback
    # CgfImport(filename, exportScaleCorrection, importScaleCorrection, topNode)
    # File “D:\Program Files\Autodesk\Maya2009\Python\lib\site-packages\cgf_import.py”, line 198, in __init__
    # self.importNode(rootnode, i+1, len(self.rootnodes), importScaleCorrection, topNode)
    # File “D:\Program Files\Autodesk\Maya2009\Python\lib\site-packages\cgf_import.py”, line 759, in importNode
    # maya.mel.eval(‘scale ‘ + str(importScaleCorrection) + ‘ ‘ + str(importScaleCorrection) + ‘ ‘ + str(importScaleCorrection) + ‘ ‘ + obj)
    # RuntimeError: Error occurred during execution of MEL script #

  1. No trackbacks yet.