Importing FBX system changes suddenly

303 views
Skip to first unread message

Lidia Martinez

unread,
Feb 23, 2015, 9:54:15 AM2/23/15
to python_in...@googlegroups.com
All my process was ok. I used  cmds.file( path, type = "FBX", return new nodes.... )

Now i execute and tells me "FBX" is not a known type. ?¿¿.  
I import by hand and says its "Fbx". It was working days ago. And a window for the settings appears now, making all my script fail.

I wonder what the hell happened from Thuesday. Is it an unexpected update?. did somebody entered my pc at work? (ankward). It was working, i imported fbx files, no prompt, FBX with uppercase worked...

I read here:
...
It is not recommended to use python file's command, but fbxImport from MEL. O_O  not a "return new nodes" parameter available now... so i have to rewrite everything i did.

Does anybody know what happened here?.

--
Lidia

Chris Lesage

unread,
Feb 23, 2015, 1:03:01 PM2/23/15
to python_in...@googlegroups.com
What version and OS first of all?

I've had similar problems where my scripted FBX process suddenly changes.

After choking through a lot of help docs and tutorials, I've been (relatively happily) using PyMEL's mel module, as suggested in this TAO thread: http://tech-artists.org/forum/showthread.php?4988-Problem-doing-an-FBX-export-with-PyMEL

Example from the thread:
pm.mel.FBXResetExport()
pm.mel.FBXExportBakeComplexAnimation(v=False)
pm.mel.FBXExportConstraints(v=False)
pm.mel.FBXExportInputConnections(v=False)
pm.mel.FBXExportUseSceneName(v=True)
pm.mel.FBXExportInAscii(v=True)
pm.mel.FBXExportSkins(v=True)
pm.mel.FBXExportShapes(v=True)
pm.mel.FBXExportCameras(v=False)
pm.mel.FBXExportLights(v=False)
pm.mel.FBXExportFileVersion(v='FBX201300')
filename = 'path_to_export_file'
pm.mel.FBXExport(s=True, f=filename)

That is probably not your issue and it would be nice to know what happened, but maybe it will work.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAAB1%3D8zq1nMS_vHZ9wjhiYZ2FFejnmYhZNGsJyRq0o91q%3DqXig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Lidia Martinez

unread,
Feb 24, 2015, 7:39:40 AM2/24/15
to python_in...@googlegroups.com
Hey Chris!,
Thanks for the link. That gave me an idea. 

I'm on Windows 8, Maya 2015, FBXplugin 2015. FBX file imported came from 3dsMax , fbx plugin version 2010. And then tried 2014, and gave me the same errors.

Found this thanks to your link

I wanted to avoid using PyMEL. But i think i'll finally end up using it anyway. :-D

I read there is a cmds.FBXImport method created in maya.cmds. I'm trying that out...


but anyway, i thought it could be some kind of conflict of names with "fbx" string. I unloaded FBX plugin, and no FBX format is allowed. That's ok. Then activated it once again, and saw on its info that it adds "File Conversions: Fbx, DAE_FBX, and others...". So FBX is no longer present, but Fbx (???)! Great, hopefully i can use it on cmds.file() like before...
I wonder where FBX came from when i was working last week..

Trying to use Fbx in the cmds.file( )  And works, but the code continues executing, no matter what happens with the importer. A screen asking for settings appears, and my script fails (import is not finished,but code continues executing...O_O. Not modal prompt)

Then i try to use   mel.eval( "FBXImport -f " + path)  <-- which is said to be an import process with no import options screen opening. But then i get this great window telling me there is an error, and the file is either corrupted or either an incorrect version. WTF!, if i import the file using maya menus, it works and imports ok. The version, maybe it's 2014 or 2010...
But FBXImport doesn't have any option to tell it to ignore version.


This is so funny.... 

Using cmds.FBXImport hopefullly helps... But there is no option for ignoring version.

--
Lidia

Lidia Martinez

unread,
Feb 24, 2015, 9:26:09 AM2/24/15
to python_in...@googlegroups.com
An interesting update on this issue:

My neighbour coworker has Maya 2015 SP5 extension 1. In the plug-in manager, in the fbx plugin info, says it adds: FBX, FBXExporter, FBX_DAE, and another one (4).  I have Fbx (!!), FBX_DAE, and the other one. but not FBXExporter and uppercase FBX.

We checked the version, it's 2015.1 . both... but we have different information.

I installed the SP5 and extension 1. Nothing changed, i still have Fbx and the other two. Nothing changed.


It's about the fbx version. But this doesn't fix it. Does anybody know a workaround?

--
Lidia
Reply all
Reply to author
Forward
0 new messages