Hello,
I’m trying to use FBFilePopupStyle.kFBFilePopupOpen so the user can select multiple fbx files for merging. It appears you can only select one file at a time. Any help would be awesome! Here is an example of the code:
from pyfbsdk import *
app = FBApplication()
Save the file using a dialog box.
saveDialog = FBFilePopup()
saveDialog.Style = FBFilePopupStyle.kFBFilePopupOpen
saveDialog.Filter = ‘*.fbx’
Pop up name for UI!
saveDialog.Caption = ‘Merge Animations’
Set pop up default open path using param arg: assetpath
#base_path = self.build_import_path(assetpath)
#saveDialog.Path = base_path
Run pop up UI!
if saveDialog.Execute():
# Once file has closed get chosen file add path details and
# use them to FileOpen
file_chosen = saveDialog.FileName
path_chosen = saveDialog.Path
file_path = f"{path_chosen}{file_chosen}"
app.FileMerge(file_path)
Many Thanks
Steve