Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
appwiki:zbrush [2019/11/14 19:28]
ying
appwiki:zbrush [2019/11/24 19:55]
ying [ZScript and ZBrush Plugins]
Line 12: Line 12:
  
   * ZScript is a script language for ZBrush automation, mainly on interface setting get and set, and button/​slider based interface interaction. It is line by line action command based script, the function is limited to what ZBrush can do, like Javascript for Photoshop Actions.   * ZScript is a script language for ZBrush automation, mainly on interface setting get and set, and button/​slider based interface interaction. It is line by line action command based script, the function is limited to what ZBrush can do, like Javascript for Photoshop Actions.
 +  * Zscript is a text file ends with "​.txt",​ by running it in ZScript menu > Load, it will compile a "​.zsc"​ file, and you can put the "​.zsc"​ file in ZBrush App/​ZStartup/​ZPlugs64 folder to let it load the script by default.
 +  * zscript cmd code reference:
 +    * http://​docs.pixologic.com/​user-guide/​customizing-zbrush/​zscripting/​command-reference/​
 +    * video tutorial: ​
 +      * MadPonyInteractive:​ https://​www.youtube.com/​channel/​UC_dWlm9jz7xc4wJQp05Nrag/​videos
  
-  ​* my ZScript for render current viewport and export jpg with name of current sub tool name. <​code>​ + 
-// 2019.11.14 - Ying - ZBrush Make subtool jpg at same folder.+  ​* 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. ​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 35: 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>​
  
Line 57: Line 75:
 [MessageOK, [GetActiveToolPath],​ "​Active Tool Path"] [MessageOK, [GetActiveToolPath],​ "​Active Tool Path"]
 </​code>​ </​code>​
-  * define a path holder+  * define a path holder ​<​code>​
 [VarDef,​filePath,""​] [VarDef,​filePath,""​]
 [VarSet,​filePath,"​D:​\z_sys\xTool\resZBrush\"​] [VarSet,​filePath,"​D:​\z_sys\xTool\resZBrush\"​]