-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMediaLab_MaterialLibrary_renderScene.ms
More file actions
34 lines (26 loc) · 1.14 KB
/
MediaLab_MaterialLibrary_renderScene.ms
File metadata and controls
34 lines (26 loc) · 1.14 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
/*
Corgan MediaLab Material Library v1.1
Render Script
Developed by Stephen Aldriedge
*/
communicatorFile = (systemTools.getEnvVariable "TEMP")+"\\"+"MaterialLibrary_communicator.tmp"
-----------------Paste Materials from File---------------------------
thecopypastedir = (systemTools.getEnvVariable "TEMP")
thecopypastefile = "materialClipboardLibrary.mat"
thecopypastestring = thecopypastedir + "\\" + thecopypastefile
pastelib = loadTempMaterialLibrary thecopypastestring
$'black slate 54x54'.material = pastelib[1]
--------------- Render ----------------
rendOutputFileName = ("V:\\INET\\MaterialLibrary\\Images\\"+pastelib[1].name+".jpg")
--rendOutputFileName = ("C:\\Users\\11697\\Desktop\\Images\\"+pastelib[1].name+".jpg") -- TEMP!
if (doesFileExist rendOutputFileName) do deleteFile rendOutputFileName
rendSaveFile = True
communicator = openFile communicatorFile mode:"w+"
format "Start" to:communicator
flush communicator; close communicator
max show vfb
max quick render
communicator = openFile communicatorFile mode:"w+"
format "Done" to:communicator
flush communicator; close communicator
quitmax #noPrompt