Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
appwiki:zbrush [2019/11/14 19:34]
ying [ZScript and ZBrush Plugins]
appwiki:zbrush [2019/11/24 19:55] (current)
ying [ZScript and ZBrush Plugins]
Line 20: Line 20:
  
   * my ZScript for render current viewport and export jpg with name of current sub tool name. <code text makeSubToolJPG.txt>​   * my ZScript for render current viewport and export jpg with name of current sub tool name. <code text makeSubToolJPG.txt>​
-// 2019.11.14 - Ying - ZBrush Make subtool jpg at same folder.+// 2019.11.14 - Ying - ZBrush Make subtool jpg at same folder. ​and pass file to bat file to handle publish process
 // note: it create a UI button in bottom of Tool menu // note: it create a UI button in bottom of Tool menu
 [ISubpalette,​ "​Tool:​zAI Plugins"​] [ISubpalette,​ "​Tool:​zAI Plugins"​]
-[IButton,"​Tool:​zAI Plugins:Ying_ZB_ExportBPR","​Press to play this ZScript. ZScript can be aborted at anytime by pressing the esc key.",+[IButton,"​Tool:​zAI Plugins:Ying_ZB_DailyBPR2","​Press to play this ZScript. ZScript can be aborted at anytime by pressing the esc key.",
 [ISet,​Render:​BPR Shadow:​FStrength,​1] [ISet,​Render:​BPR Shadow:​FStrength,​1]
 [ISet,​Render:​BPR Shadow:​GStrength,​0.75] [ISet,​Render:​BPR Shadow:​GStrength,​0.75]
Line 41: Line 41:
 [FileNameSetNext,​fileName] [FileNameSetNext,​fileName]
  
-[IPress,​Render:​Render]+[ISet,​Render:​BPR RenderPass:​SPix,​5] 
 +[IPress,​Render:​BPR RenderPass:​Render Best Preview] 
 +// [IPress,​Render:​Render]
 [IPress,​Document:​Export] [IPress,​Document:​Export]
 [Note,"​Ying.AI Has Exported the Image for you.",,​ 3 ] [Note,"​Ying.AI Has Exported the Image for you.",,​ 3 ]
 [NoteBar, fileName] [NoteBar, fileName]
 +
 +[VarSet,​toolFolderPath,"​R:​\Pipeline\PyZBrush\SubToolJPGDaily"​]
 +[VarSet,​folderExists,​[FileExecute,"​R:​\Pipeline\PyZBrush\SubToolJPGDaily\ZFileUtils64.dll","​FolderExists",#​toolFolderPath]]
 +[If,​folderExists, ​
 +    [Note,"​Daily Tool Folder exists.",,​3]
 +    [ShellExecute,​ [StrMerge,"​R:​\Pipeline\PyZBrush\SubToolJPGDaily\zAImakeSubToolJPGDaily_exe.bat ",​fileName]]
 +    ,
 +    [Note,"​Daily Tool Folder does not exist.",,​3] ]
 +
 ]/*End of ZScript*/ ]/*End of ZScript*/
 +
 </​code>​ </​code>​