MotionBuilder Forum
Welcome to Autodesk’s MotionBuilder Forums. Share your knowledge, ask questions, and explore popular MotionBuilder topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FBApplication().FileSave() TRIPLES file size!!!

6 REPLIES 6
Reply
Message 1 of 7
GeordieMartinez
569 Views, 6 Replies

FBApplication().FileSave() TRIPLES file size!!!

I have a binary FBX rig from maya.
the file is 1.6 meg.

If I open it in Mobu and the use the GUI to save it. it becomes 1.8 meg. not bad

if I use Python to save it as a binary, it TRIPLES in SiZE!!!! What the #U^*% is going on here?

If I type in
FBApplication().FileSave()


the file is 6.33 meg.

I have no idea how to keep this file size from exploding.
ideas?
6 REPLIES 6
Message 2 of 7
_KxL_
in reply to: GeordieMartinez

Try using:

from pyfbsdk import FBFbxManager

saveMgr = FBFbxManager()
saveMgr.SaveBegin( 'C:\\Test.fbx' )
saveMgr.SetOptionsFromHistory()
saveMgr.Save()
saveMgr.SaveEnd()

del(saveMgr)
del(FBFbxManager)


You can also set save options by yourself, or save them in file and reuse. Here I used last save options that you have in history file.

Cheers.
Message 3 of 7
Anonymous
in reply to: GeordieMartinez

Hi Geordie,

Is it possible that you are saving in ASCII type? In that case it would be normal that your fbx get 3 times the size of the first one.

Also, take note that there`s a difference between the FBX exported from 3d apps, and the fbx saved in Mobu. The FBX exported is a sdk file format, and the one saved in Mobu is his native file format. In the fbx of Mobu, there`s a lot more info of stuff that cannot be understood by the FBX plugin.


Mart
Message 4 of 7

Binary to begin with. Binary afterward.

Try it yourself see if your file does the same thing.
This seems to work. It's the embed option that seems to be defaulting to True:

from pyfbsdk import FBFbxManager

saveMgr = FBFbxManager()
saveMgr.SaveBegin( 'C:\\Test.fbx' )
saveMgr.SetOptionsFromHistory()
# must turn off EmbedMedia
saveMgr.EmbedMedia = False
saveMgr.Save()
saveMgr.SaveEnd()

del(saveMgr)
del(FBFbxManager)
Message 5 of 7
Anonymous
in reply to: GeordieMartinez

Seems to work with me.

If the embed was defaulting to True, it would be a good reason to triple the file size ; )
Message 6 of 7
_KxL_
in reply to: GeordieMartinez

Geordie,

Can you check in <MB root folder>\bin\config in ???.Application.txt file this lines:


EmbedMedias = No
ConvertImageToTiff = No
OneTakePerFile = No
UseTakeName = No


Maybe you have here enabled embeding, so when you disable it, your life could be easier 😉
Message 7 of 7

Holy cow.
That's what it was.
the ???.Application.txt had EmbedMedias = Yes.

You rock KxL

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums