-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsubmit info.ms
31 lines (21 loc) · 1.01 KB
/
submit info.ms
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
submitInfoFileName = pathConfig.appendPath (getFilenamePath (rendOutputFilename)) "submitInfo.txt"
submitInfoFile = ""
if (doesFileExist submitInfoFileName) then
submitInfoFile = openFile submitInfoFileName mode:"a+"
else
submitInfoFile = createfile submitInfoFileName
dateClass = (dotnetclass "System.DateTime").Now
date_string = dateClass.ToString("yyyy-MM-dd HH:mm:ss")
submitInfo = date_string
format "===============Submitted On: %===============\n" submitInfo to:submitInfoFile
submitInfo = filenameFromPath (rendOutputFilename)
format "Rendered Images: %\n" submitInfo to:submitInfoFile
format "Camera Name : %\n" batchCameraRender_currentcamera.name to:submitInfoFile
submitInfo = pathConfig.appendPath maxFilePath maxFileName
format "Submit scene: %\n" submitInfo to:submitInfoFile
submitInfo = sysInfo.username
format "Username: %\n" submitInfo to:submitInfoFile
submitInfo = sysInfo.computername
format "Computer: %\n" submitInfo to:submitInfoFile
format "\n" to:submitInfoFile
close submitInfoFile