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!
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!
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?
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 =)
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
@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…
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 ?
@ 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
Hello , any support for x64 version?
ohh so seems like ColladaCGF is the problem , hmm noted thanks
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
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
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
@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.
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 #