//RECORDED ZSCRIPT 2018 //[IButton,Play,"Press to play this ZScript. ZScript can be aborted at anytime by pressing the ëescí key.", [IConfig,2018] ////*Palette*////// [ISubPalette,"Zplugin:Artifacts"] ////*Load Main Light*////// [IButton,"Zplugin:Artifacts:Load Main Light","Press this to view your current main light", [VarDef,totaltools,0] [VarSet,totaltools,[SubToolGetCount]] [Loop,totaltools, [IPress,Tool:SubTool:SelectUp] ] [VarDef,tooth,""] [VarDef,mainlight,""] [VarSet,tooth,[GetActiveToolPath]] [VarSet,mainlight,[StrMerge,tooth,".ZLI"]] [If, [FileExists,mainlight] > 0, [FileNameSetNext,mainlight][IPress,Light:Load], [FileNameSetNext,"C:/ArtifactRenders/ZLights03.ZLI"][IPress,Light:Load] ] , ,1,,,25] ////*Save Main Light*////// [IButton,"Zplugin:Artifacts:Save Main Light","Press this to save your current main light", [VarDef,totaltools,0] [VarSet,totaltools,[SubToolGetCount]] [Loop,totaltools, [IPress,Tool:SubTool:SelectUp] ] [VarDef,tooth,""] [VarDef,mainlight,""] [VarSet,tooth,[GetActiveToolPath]] [VarSet,mainlight,[StrMerge,tooth,".ZLI"]] [FileNameSetNext,mainlight][IPress,Light:Save], ,1,,,50] ////*Configure Rim Light Left*////// [IButton,"Zplugin:Artifacts:Load Rim Left","Press this to view your current rim light", [VarDef,totaltools,0] [VarSet,totaltools,[SubToolGetCount]] [Loop,totaltools, [IPress,Tool:SubTool:SelectUp] ] [VarDef,tooth,""] [VarDef,can,""] [VarSet,tooth,[GetActiveToolPath]] [VarSet,can,[StrMerge,tooth,"R1.ZLI"]] [IPress,Material:Metal 01] [IPress,Draw:M] [IPress,Color:FillObject] [IPress,Tool:SubTool:SelectDown] [IPress,Color:FillObject] [IPress,Tool:SubTool:SelectUp] [If, [FileExists,can] > 0, [FileNameSetNext,can][IPress,Light:Load], [FileNameSetNext,"C:/ArtifactRenders/ZLights02.ZLI"][IPress,Light:Load] ] [IUnPress,Draw:M], ,.5,,,25] ////*Configure Rim Light Right*////// [IButton,"Zplugin:Artifacts:Load Rim Right","Press this to view your current rim light", [VarDef,totaltools,0] [VarSet,totaltools,[SubToolGetCount]] [Loop,totaltools, [IPress,Tool:SubTool:SelectUp] ] [VarDef,tooth,""] [VarDef,jerry,""] [VarSet,tooth,[GetActiveToolPath]] [VarSet,jerry,[StrMerge,tooth,"R2.ZLI"]] [IPress,Material:Metal 01] [IPress,Draw:M] [IPress,Color:FillObject] [IPress,Tool:SubTool:SelectDown] [IPress,Color:FillObject] [IPress,Tool:SubTool:SelectUp] [If, [FileExists,mainlight] > 0, [FileNameSetNext,mainlight][IPress,Light:Load], [FileNameSetNext,"C:/ArtifactRenders/ZLights01.ZLI"][IPress,Light:Load] ] [IUnPress,Draw:M], ,.5,,,25] ////*Set Rim Light Left*////// [IButton,"Zplugin:Artifacts:Set L","Press this to set your rim light", [VarDef,tooth,""] [VarDef,can""] [VarDef,mainlight,""] [VarSet,tooth,[GetActiveToolPath]] [VarSet,can,[StrMerge,tooth,"R1.ZLI"]] [VarSet,mainlight,[StrMerge,tooth,".ZLI"]] [If, [MessageYesNo,"Are you sure you want to save light?"] > 0, [FileNameSetNext,can][IPress,Light:Save], ] [VarDef,totaltools,0] [VarSet,totaltools,[SubToolGetCount]] [Loop,totaltools, [IPress,Tool:SubTool:SelectUp] ] [IPress,Edit:Tool:Undo] [IPress,Tool:SubTool:SelectDown] [IPress,Edit:Tool:Undo] [If, [FileExists,mainlight] > 0, [FileNameSetNext,mainlight][IPress,Light:Load], [FileNameSetNext,"C:/ArtifactRenders/ZLights03.ZLI"][IPress,Light:Load] ] [IUnPress,Tool:Artifacts:Load Rim Left] ,,.5,,,50] ////*Set Rim Light Right*////// [IButton,"Zplugin:Artifacts:Set R","Press this to set your rim light", [VarDef,tooth,""] [VarDef,jerry,""] [VarDef,mainlight,""] [VarSet,tooth,[GetActiveToolPath]] [VarSet,jerry,[StrMerge,tooth,"R2.ZLI"]] [VarSet,mainlight,[StrMerge,tooth,".ZLI"]] [If, [MessageYesNo,"Are you sure you want to save light?"] > 0, [FileNameSetNext,jerry][IPress,Light:Save], ] [VarDef,totaltools,0] [VarSet,totaltools,[SubToolGetCount]] [Loop,totaltools, [IPress,Tool:SubTool:SelectUp] ] [IPress,Edit:Tool:Undo] [IPress,Tool:SubTool:SelectDown] [IPress,Edit:Tool:Undo] [If, [FileExists,mainlight] > 0, [FileNameSetNext,mainlight][IPress,Light:Load], [FileNameSetNext,"C:/ArtifactRenders/ZLights03.ZLI"][IPress,Light:Load] ] [IUnPress,Tool:Artifacts:Load Rim Right] ,,.5,,,50] ////*Spacer*////// [IButton,"Zplugin:Artifacts:__",,,1,1,,,10] ////*Load Angle of View*////// [IButton,"Zplugin:Artifacts:Load AOV","Press this to load your angle of view settings", [VarDef,totaltools,0] [VarSet,totaltools,[SubToolGetCount]] [Loop,totaltools, [IPress,Tool:SubTool:SelectUp] ] [VarDef,tooth,""] [VarDef,texty,""] [VarSet,tooth,[GetActiveToolPath]] [VarSet,texty,[StrMerge,tooth,".zvr"]] [MemCreateFromFile,tester,texty] [VarDef,line,""] [MemReadString,tester,line,0] [VarDef,angofview,""] [VarSet,angofview,[StrExtract,line,1,6]] [ISet,Draw:Angle Of View,angofview] [VarDef,persp,""] [VarSet,persp,[StrExtract,line,0,0]] [If,persp > 0, [IPress,Draw:Perspective], [IUnPress,Draw:Perspective]] [MemDelete,tester], ,.5,,,50] ////*Save Angle of View*////// [IButton,"Zplugin:Artifacts:Save AOV","Press this to save your angle of view settings", [MessageYesNo,"Are you sure you want to save your camera settings"] [VarDef,totaltools,0] [VarSet,totaltools,[SubToolGetCount]] [Loop,totaltools, [IPress,Tool:SubTool:SelectUp] ] [VarDef,tooth,""] [VarDef,texty,""] [VarSet,tooth,[GetActiveToolPath]] [VarSet,texty,[StrMerge,tooth,".zvr"]] [VarDef,angofview,0] [VarSet,angofview,[IGet,Draw:Angle Of View]] [VarDef,persp,0] [VarSet,persp,[IGet,Draw:Perspective]] [VarDef,bothsettings,""] [VarSet,bothsettings,[StrMerge,persp,angofview,]] [VarDef,bothsettingsExt,""] [VarSet,bothsettingsExt,[StrExtract,bothsettings,0,6]] [MemCreate,camerasettings,9] [MemWriteString,camerasettings,bothsettingsExt,0] [MemSaveToFile,camerasettings,texty,0] [MemDelete,camerasettings], ,.5,,,25] ///*Turn Perspective On Off*/// //[ISwith,"Zplugin:Artifacts:Perp","Press this to turn perspective on and off", //[FileNameSetNext,"C:\ArtifactRenders\GuideLines.psd"][IPress,Document:Import] //,,.5,,,25] ///*Angle of View*/// //[ISlider ////*Spacer*////// [IButton,"Zplugin:Artifacts:___",,,1,1,,,10] ////*Add Guides*////// [IButton,"Zplugin:Artifacts:Add Guides","Press this to generate guide lines", [FileNameSetNext,"C:\ArtifactRenders\GuideLines.psd"][IPress,Document:Import] ,,.5,,,25] ////*Material Fill*////// [IButton,"Zplugin:Artifacts:Material Fill","Press this to load your camera", [IPress,Draw:M] [IPress,Color:FillObject] [IUnPress,Draw:M] ,,.5,,,25] ////*AO Bounces*////// //[ISlider,"Zplugin:Artifacts:AO Bounces",640,1,200,8000,"How many bounces for your AO bake",,,190,,,25] ////*Spacer*////// [IButton,"Zplugin:Artifacts:____",,,1,1,,,10] ////*Render Common Artifacts*////// [IButton,"Zplugin:Artifacts:Render Common Artifacts","Run this to compile your final image", [VarDef,totaltools,0] [VarSet,totaltools,[SubToolGetCount]] [Loop,totaltools, [IPress,Tool:SubTool:SelectUp] ] [VarDef,tooth,""] [VarDef,can,""] [VarDef,jerry,""] [VarDef,steve,""] [VarDef,jim,""] [VarDef,chris,""] [VarDef,paul,""] [VarDef,john,""] [VarDef,mainlight,""] [VarSet,jerry,[StrMerge,tooth,"R2.ZLI"]] [VarSet,mainlight,[StrMerge,tooth,".ZLI"]] [VarSet,tooth,[GetActiveToolPath]] [VarSet,can,[StrMerge,tooth,"R1.ZLI"]] [VarSet,jerry,[StrMerge,tooth,"R2.ZLI"]] [VarSet,mainlight,[StrMerge,tooth,".ZLI"]] [VarSet,steve,"2206"]//*Material Render* [VarSet,jim,"2207"]//*Depth Render* [VarSet,chris,"2208"]//*Shadow Render* [VarSet,paul,"2209"]//*AO Render* [VarSet,john,"2210"]//*Mask Render* [IUnPress,Transform: Pf] [ISet,Draw:Rgb Intensity,100] [ISet,Render:BPR Shadow:Angle,54.93164] [ISet,Render:BPR Shadow:Rays,1] [IUnPress,Render:Render Properties:AOcclusion] [IPress,Draw:Rgb] [IColorSet,0,0,0] [IPress,Color:FillObject] [IUnPress,Draw:Rgb] [IPress,Draw:M] [IPress,Material:Flat Color] [IPress,Color:FillObject] [IPress,Tool:SubTool:SelectDown] [IPress,Draw:Rgb] [IColorSet,255,255,255] [IUnPress,Draw:Rgb] [IPress,Color:FillObject] [IPress,Draw:M] [IPress,Material:Flat Color] [IPress,Color:FillObject] [IPress,Render:BPR RenderPass:Render Best Preview] [FileNameSetNext,"C:/ArtifactRenders/ID.PSD"][IPress,steve] [FileNameSetNext,"C:/ArtifactRenders/BPR_Mask.PSD"][IPress,john] [IPress,Edit:Tool:Undo ] [IPress,Edit:Tool:Undo ] [IPress,Tool:SubTool:SelectUp] [IPress,Edit:Tool:Undo ] [IPress,Edit:Tool:Undo ] [ISet,Render:BPR Shadow:Rays,80] [IPress,Render:BPR RenderPass:Render Best Preview] [FileNameSetNext,"C:/ArtifactRenders/M1.PSD"][IPress,steve] [FileNameSetNext,"C:/ArtifactRenders/M2.PSD"][IPress,steve] [FileNameSetNext,"C:/ArtifactRenders/Depth.PSD"][IPress,jim] [FileNameSetNext,"C:/ArtifactRenders/Shadow.PSD"][IPress,chris] [IPress,Render:Render Properties:AOcclusion] [ISet,Render:BPR AO:Rays,45] [IPress,Render:BPR RenderPass:Render Best Preview] [FileNameSetNext,"C:/ArtifactRenders/AO.PSD"][IPress,paul] [ISet,Render:BPR AO:Rays,15] [IUnPress,Render:Render Properties:AOcclusion] [IPress,Material:Metal 01] [IPress,Color:FillObject] [IPress,Tool:SubTool:SelectDown] [IPress,Material:Metal 01] [IPress,Color:FillObject] [ISet,Light:Ambient,0] [ISet,Light:Intensity,1.5] [If, [FileExists,can] > 0, [FileNameSetNext,can][IPress,Light:Load], [FileNameSetNext,"C:/ArtifactRenders/ZLights01.ZLI"][IPress,Light:Load] ] [IPress,Render:BPR RenderPass:Render Best Preview] [FileNameSetNext,"C:/ArtifactRenders/R1.PSD"][IPress,steve] [If, [FileExists,jerry] > 0, [FileNameSetNext,jerry][IPress,Light:Load], [FileNameSetNext,"C:/ArtifactRenders/ZLights02.ZLI"][IPress,Light:Load] ] [IPress,Render:BPR RenderPass:Render Best Preview] [FileNameSetNext,"C:/ArtifactRenders/R2.PSD"][IPress,steve] [IPress,Edit:Tool:Undo] [IPress,Tool:SubTool:SelectUp] [IPress,Edit:Tool:Undo] [If, [FileExists,mainlight] > 0, [FileNameSetNext,mainlight][IPress,Light:Load], [FileNameSetNext,"C:/ArtifactRenders/ZLights03.ZLI"][IPress,Light:Load] ] ,,1,,,50] ////*Render Legendary Artifacts*////// [IButton,"Zplugin:Artifacts:Render Legendary Artifacts","Run this to compile your final image",,,1,,,50] //]