# Copyright 2009 Autodesk, Inc. All rights reserved. # Use of this software is subject to the terms of the Autodesk license agreement # provided at the time of installation or download, or which otherwise accompanies # this software in either electronic or hard copy form. # # Topic: FBApplication.FileSave # from pyfbsdk import FBApplication, FBFbxOptions lOptions = FBFbxOptions(False) # For now use a hard-code filename... Could have used the FBFilePopup. # Save only selected files, in ASCII format so we can have a look # at the file. lOptions.SaveSelectedModelsOnly = True lOptions.UseASCIIFormat = True # There is no point in saving all the system information... # We just want the selected models. lOptions.BaseCameras = False lOptions.CameraSwitcherSettings = False lOptions.CurrentCameraSettings = False lOptions.GlobalLightingSettings = False lOptions.TransportSettings = False # Now do the actual save. if not FBApplication().FileSave(r"c:\SaveSelected.fbx", lOptions): print 'Problem saving the file: FileSave()' # Cleanup del(lOptions, FBApplication, FBFbxOptions)