-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDthOptions.dsa
More file actions
70 lines (59 loc) · 2.3 KB
/
Copy pathDthOptions.dsa
File metadata and controls
70 lines (59 loc) · 2.3 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
// Default options for DthWorkflow and userscripts calling it. Can be overridden.
// YOU MUST CHANGE THIS. If using windows, backslashes must be escaped (use two backslashes '\\")
var DTH_POSES_PATH = "D:/DAZ 3D/My DAZ 3D Library/DazToHue/Poses/",
var options = {
bIncludeJCM: true,
// set true to include use the FAC version of the ROM
bIncludeFAC: true,
bIncludeDK: false,
bIncludeGP: false,
// Offsets for the fence poses, relative to the first frame of the GP ROM file
aGPFenceOffsets: [0, 95, 99, 102],
// Offsets for the fence poses, relative to the first frame of the DK9 ROM file
aDK9FenceOffsets: [0, 33, 46, 47, 49, 52],
bDQS: false,// set true to enable Dual Quat Skinning, defaults to linear
FACsDetailStrength: 1.0,
FlexionStrength: 1.0,
extraJSONs: [],
extraCSVs: [], // Legacy - only used by DthExportFBMs.dsa
scannedCSV: dir_self.filePath ("OUT.csv"),
successCSV: dir_self.filePath ("OUT_success.csv"),
failCSV: dir_self.filePath ("OUT_failed.csv"),
// Morphs to preserve after ROM loading. Example: [{ name: "body_ctrl_BreastsUp-Down", keepValue: 1 }]
preserveMorphs: [],
// Node transforms to preserve after ROM loading. Example: [{ nodeLabel: "Left Eye" }]
preserveNodeTransforms: [],
jcmMorphMods: []
};
// Set up paths - should only need to change if using custom ROMs
var sRomPath = DTH_POSES_PATH + "Genesis 9/";
var ROM_DK9 = sRomPath + "Common/Dicktator 9/DK9 - Dicktator.duf";
var ROM_GP9 = sRomPath + "Common/Golden Palace 9/GP9 - Golden Palace.duf";
var G9_LINEAR_JCM = sRomPath + "Linear/G9 LINEAR JCM FAC - Base.duf";
var G9_LINEAR_JCM_FAC = sRomPath + "Linear/G9 LINEAR JCM FAC - Base.duf";
var G9_LINEAR_JCM_FAC_MOUTH = sRomPath + "Linear/G9 LINEAR JCM FAC - Mouth.duf";
var G9_DQS_JCM = sRomPath + "DQS/G9 DQS JCM FAC - Base.duf";
var G9_DQS_JCM_FAC = sRomPath + "DQS/G9 DQS JCM FAC - Base.duf";
var G9_DQS_JCM_FAC_MOUTH = sRomPath + "DQS/G9 DQS JCM FAC - Mouth.duf";
function getRomPaths(options)
{
var sJcmROM;
var sMouthROM;
if( !options["bDQS"] )
{
if( options["bIncludeFAC"] ){
sJcmROM = G9_LINEAR_JCM_FAC;
sMouthROM = G9_LINEAR_JCM_FAC_MOUTH;
} else {
sJcmROM = G9_LINEAR_JCM;
}
} else {
if( options["bIncludeFAC"] ){
sJcmROM = G9_DQS_JCM_FAC;
sMouthROM = G9_DQS_JCM_FAC_MOUTH;
} else {
sJcmROM = G9_DQS_JCM;
}
}
return [sJcmROM, sMouthROM];
}