-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExportOptions.h
More file actions
158 lines (130 loc) · 3.89 KB
/
Copy pathExportOptions.h
File metadata and controls
158 lines (130 loc) · 3.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
#pragma once
#include <QString>
#include <QStringList>
#include <QSize>
class DzFileIOSettings;
class ExportOptions {
public:
ExportOptions() {
resetToDefaults();
}
~ExportOptions() {}
// Export flow settings (mapped to/from JSON command)
bool selectedOnly;
bool includeMaterials;
bool includeAnimations;
bool bakeTextures;
// Asset info
QString assetType;
QString exportFilename;
QString exportSubfolder;
QString rootFolder;
QString productName;
QString productComponentName;
QStringList morphList;
bool useRelativePaths;
// Normal maps
bool generateNormalMaps;
bool undoNormalMaps;
// FBX
QString exportFbx;
// LOD
bool enableLodGeneration;
int lodMethodIndex;
QString lodMethodString;
int numberOfLods;
// Texture settings
bool convertToPng;
bool convertToJpg;
bool exportAllTextures;
bool combineDiffuseAndAlphaMaps;
bool resizeTextures;
int targetTextureWidth;
int targetTextureHeight;
QSize targetTextureSize;
bool multiplyTextureValues;
bool recompressIfFileSizeTooBig;
int fileSizeThresholdToInitiateRecompression;
bool forceReEncoding;
// Bake settings
bool bakeMakeupOverlay;
bool bakeTranslucency;
bool bakeSpecularToMetallic;
bool bakeRefractionWeight;
// Bake modes
int bakeInstancesMode;
int bakePivotPointsMode;
int bakeRigidFollowNodesMode;
// Animation settings
bool animationUseExperimentalTransfer;
bool animationBake;
bool animationTransferFace;
bool animationExportActiveCurves;
bool animationApplyBoneScale;
// Post-process FBX
bool postProcessFbx;
bool removeDuplicateGeografts;
bool experimentalFbxPostProcessing;
// Morph settings
bool morphLockBoneTranslation;
bool enableAutoJcm;
bool enableFakeDualQuat;
bool allowMorphDoubleDipping;
// Lod settings (additional)
bool createLodGroup;
static ExportOptions fromJson(const QString& json);
void applyToSettings(DzFileIOSettings* settings) const;
void resetToDefaults() {
selectedOnly = false;
includeMaterials = true;
includeAnimations = true;
bakeTextures = false;
assetType = "SkeletalMesh";
exportFilename = "";
exportSubfolder = "";
rootFolder = "";
productName = "";
productComponentName = "";
morphList.clear();
useRelativePaths = false;
generateNormalMaps = false;
undoNormalMaps = false;
exportFbx = "";
enableLodGeneration = false;
lodMethodIndex = 0;
lodMethodString = "PreGenerated";
numberOfLods = 3;
convertToPng = false;
convertToJpg = false;
exportAllTextures = false;
combineDiffuseAndAlphaMaps = false;
resizeTextures = false;
targetTextureWidth = 4096;
targetTextureHeight = 4096;
targetTextureSize = QSize(4096, 4096);
multiplyTextureValues = false;
recompressIfFileSizeTooBig = false;
fileSizeThresholdToInitiateRecompression = 10*1024*1024;
forceReEncoding = false;
bakeMakeupOverlay = false;
bakeTranslucency = false;
bakeSpecularToMetallic = false;
bakeRefractionWeight = false;
bakeInstancesMode = 0;
bakePivotPointsMode = 0;
bakeRigidFollowNodesMode = 0;
animationUseExperimentalTransfer = false;
animationBake = false;
animationTransferFace = false;
animationExportActiveCurves = false;
animationApplyBoneScale = false;
postProcessFbx = false;
removeDuplicateGeografts = false;
experimentalFbxPostProcessing = false;
morphLockBoneTranslation = false;
enableAutoJcm = false;
enableFakeDualQuat = false;
allowMorphDoubleDipping = false;
createLodGroup = false;
}
};