-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDthScanFrames.dsa
More file actions
22 lines (18 loc) · 795 Bytes
/
Copy pathDthScanFrames.dsa
File metadata and controls
22 lines (18 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// DAZ Studio version 4.22.0.16 filetype DAZ Script
// DthUtils.dsa must exist in the same folder as this script
var dir_self = new DzDir (new DzFileInfo (getScriptFileName ()).path ());
include (dir_self.filePath ("ScanKeyFrames.dsa"));
// UNCOMMENT THIS LINE if you want a different output file.
var OUT_FILENAME = (dir_self.filePath ("Genesis9g _v5SCAN.CSV"));
var oNode = Scene.getPrimarySelection();
var aNodes = Scene.getSelectedNodeList();
print("Anodes: ", aNodes.map(toString).toString());
var frameDatas = [];
scanNodesForFrameDatas(aNodes, frameDatas);
var sOutFilename;
var oNodeRoot = getNodeRoot(oNode);
if(oNodeRoot){
sOutFilename = OUT_FILENAME || dir_self.filePath(oNodeRoot.getLabel() + ".csv");
print("Will write to", sOutFilename);
}
printCSV(frameDatas, sOutFilename);