command FileSave() TRIPLES filesize!!! WTF?


#1

I export a binary FBX out of Maya.
the resulting file is 1.62 Meg

I open it in MotionBuilder.

type this into the Python console:


 app = FBApplication()
 app.FileSave()
 

And it makes the file 6.3Meg!!
what the hell is happening? I open a file and save it with NO ALTERATIONS and it bloats to 3 times the size?

BUT if I just click File > Save
it save the file and the size goes up just a little bit, but doesn’t triple.

Any Ideas?


#2

Hi DangerAhead,

when MB writes fbx file, program put in file all application’s configuration including for example story, trigerring, motion blend, plug-ins data and so on… When U export from maya to fbx, export plugin write only information about models and animations… as the result, fbx file are much bigger that from export plugin one.


#3

Sorry, Niell that wasn’t it. Because if I did all my operations then saved the file with the GUI the file size was still pretty small.

I guess MotionBuilder, by default, tries to embed textures when you do the command via Python. for some reason that is the default operation for the FBX manager.

Saving it with this code will prevent embedding images.

 
fbxMgr = FBFbxManager()
fbxMgr.SaveBegin( "c:\\blah.fbx")
fbxMgr.SetOptionsFromHistory() 
[b]fbxMgr.EmbedMedia = False[/b]
fbxMgr.Save() 
fbxMgr.SaveEnd()
 


#4

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.