Area :: Header
Meet the Experts Webinar
Learn how Black Forest Games rebooted the classic C64 platform game “Giana Sisters” from 1987 using Autodesk 3ds Max®.
Discussion Groups

Python

Reply
Active Member
Posts: 10
Registered: ‎11-30-2007

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

17 Views, 6 Replies
03-01-2008 02:45 AM
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?
Please use plain text.
Distinguished Contributor
_KxL_
Posts: 411
Registered: ‎08-23-2006

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

03-01-2008 08:57 AM 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.
Please use plain text.
Active Contributor
mpigeon_1
Posts: 38
Registered: ‎11-28-2007

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

03-03-2008 12:42 PM 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
Please use plain text.
Active Member
Posts: 10
Registered: ‎11-30-2007

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

03-03-2008 05:40 PM in reply to: GeordieMartinez
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)
Please use plain text.
Active Contributor
mpigeon_1
Posts: 38
Registered: ‎11-28-2007

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

03-03-2008 06:26 PM 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 ; )
Please use plain text.
Distinguished Contributor
_KxL_
Posts: 411
Registered: ‎08-23-2006

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

03-04-2008 09:04 AM 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 :smileywink:
Please use plain text.
Active Member
Posts: 10
Registered: ‎11-30-2007

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

03-04-2008 05:30 PM in reply to: GeordieMartinez
Holy cow.
That's what it was.
the ???.Application.txt had EmbedMedias = Yes.

You rock KxL
Please use plain text.