1
2
3
4
5
6
7
8
9
10
11
12from pyfbsdk import *
13
14import os.path
15
16SOURCE_SCENE_PATH = "multiple_elements_scene.fbx"
17SAVE_SCENE_PATH = "single_elements_scene.fbx"
18NO_LOAD_UI_DIALOG = False
19OPTION_USED_FOR_LOADING = True
20OPTION_USED_FOR_SAVING = False
21
23
24def CreateDummyScene():
25
30
31 app.FileSave(SOURCE_SCENE_PATH)
32 app.FileNew()
33
34
35CreateDummyScene()
36
37
38
39
41
42
43
44
45options.Characters = FBElementAction.kFBElementActionDiscard
46
47
48options.CameraAnimation = False
49
50
51app.FileOpen(SOURCE_SCENE_PATH, NO_LOAD_UI_DIALOG, options)
52
53
54
56
57
58options.SetAll(FBElementAction.kFBElementActionDiscard, False)
59
60
61options.Actors = FBElementAction.kFBElementActionSave
62options.ActorAnimation = True
63
64
65options.UseASCIIFormat = True
66
67app.FileSave(SAVE_SCENE_PATH, options)
68
69
FBActor is used to link motion data to a character.
Definition: pyfbsdk_generated.h:56
FBApplication is used mainly to manage files.
Definition: pyfbsdk_generated.h:801
Creates custom cameras and manages system cameras.
Definition: pyfbsdk_generated.h:2530
A character is the link between a motion source and a character model.
Definition: pyfbsdk_generated.h:3085
Customize file loading and saving.
Definition: pyfbsdk_generated.h:7400
Cube model class.
Definition: pyfbsdk_generated.h:11337