ZBrushCentral

Question: Macro script problem

Hi ,
I had 2 problem with the macro script,

  1. My goal is to allow the software to perform rendering, and then the output of a series of documents, and now every time the output phase will be reported to the error.

ZScript note:Interface item could not be found.
ERROR:Render:BPR RenderPass:Img
IN:[IPress,Render:BPR RenderPass:Img]

The complete code

//ZBRUSH MACRO - Recorded in ZBrush version 4.73
[IButton,???,“Press to run this macro. Macros can be aborted by pressing the ëescí key.”,
[IShowActions,0]
[IConfig,4.73]
[ISet,Draw:Grid Size,19.15239]
[ISet,Render:BPR RenderPass:SPix,3]
[IPress,Render:Render Properties:SmoothNormals]
[IPress,Render:Render Properties:Shadow]
[IPress,Render:Render Properties:AOcclusion]
[IPress,Render:Render Properties:WaxPreview]
[IPress,Render:Render Properties:Sss]
[IPress,Render:Bpr Sss:SSS Across Subtools]
[ISet,Render:BPR Shadow:FStrength,0.65]
[ISet,Render:BPR Shadow:Rays,150]
[ISet,Render:BPR Shadow:Angle,10]
[IPress,Render:BPR RenderPass:Render Best Preview]
[FileNameSetNext,“C: emp\1_Pass_BPR_Render.bmp”][IPress,Render:BPR RenderPass:Img]
[FileNameSetNext,“C: emp\1_Pass_BPR_Depth.bmp”][IPress,Render:BPR RenderPass:Dep]
[FileNameSetNext,“C: emp\1_Pass_BPR_Shadow.bmp”][IPress,Render:BPR RenderPass:Shdw]
[FileNameSetNext,“C: emp\1_Pass_BPR_AO.bmp”][IPress,Render:BPR RenderPass:AmOc]
[FileNameSetNext,“C: emp\1_Pass_BPR_Mask.bmp”][IPress,Render:BPR RenderPass:Mask]
[FileNameSetNext,“C: emp\1_Pass_BPR_SSS.bmp”][IPress,Render:BPR RenderPass:Sss]
,0.43]

2.The second problem is in the implementation of the code, the software will pop out the image of the dialog box, let me output a BPR shadow pass image, but my code does not have this section of content, I am very confused.

The complete code
//ZBRUSH MACRO - Recorded in ZBrush version 4.73
[IButton,???,“Press to run this macro. Macros can be aborted by pressing the ëescí key.”,
[IShowActions,0]
[IConfig,4.73]
[ISet,Draw:Grid Size,19.15239]
[ISet,Render:BPR RenderPass:SPix,3]
[ISet,Render:Render Properties:Details,3]
[IPress,Render:Render Properties:SmoothNormals]
[IPress,Render:Render Properties:Shadow]
[IPress,Render:Render Properties:AOcclusion]
[IPress,Render:Render Properties:WaxPreview]
[IUnPress,Render:Render Properties:Sss]
[ISet,Render:BPR Shadow:FStrength,0.65]
[ISet,Render:BPR Shadow:Rays,150]
[ISet,Render:BPR Shadow:Angle,10]
[IPress,Render:BPR RenderPass:Render Best Preview]
[FileNameSetNext,“C: emp\1_Pass_AO_Shaded.bmp”][IPress,Document:Export]
,0.42]

Thank you very much!:smiley:

  1. It’s necessary to edit the macro so that the interface numerical ID is used for the different images. I’ve also changed some of the IPresses to ISet because I kept getting a file dialog for Shadow (though not sure why!).

//ZBRUSH MACRO - Recorded in ZBrush version 4.73
[IButton,???,“Press to run this macro. Macros can be aborted by pressing the ëescí key.”,
[IShowActions,0]
[IConfig,4.73]
[ISet,Draw:Grid Size,19.15239]
[ISet,Render:BPR RenderPass:SPix,3]
[ISet,Render:Render Properties:SmoothNormals,1]
[ISet,Render:Render Properties:Shadow,1]
[ISet,Render:Render Properties:AOcclusion,1]
[ISet,Render:Render Properties:WaxPreview,1]
[ISet,Render:Render Properties:Sss,1]
[ISet,Render:Bpr Sss:SSS Across Subtools,1]
[ISet,Render:BPR Shadow:FStrength,0.65]
[ISet,Render:BPR Shadow:Rays,150]
[ISet,Render:BPR Shadow:Angle,10]
[IPress,Render:BPR RenderPass:Render Best Preview]
[FileNameSetNext,“C: emp\1_Pass_BPR_Render.bmp”][IPress,2219]
[FileNameSetNext,“C: emp\1_Pass_BPR_Depth.bmp”][IPress,2220]
[FileNameSetNext,“C: emp\1_Pass_BPR_Shadow.bmp”][IPress,2221]
[FileNameSetNext,“C: emp\1_Pass_BPR_AO.bmp”][IPress,2222]
[FileNameSetNext,“C: emp\1_Pass_BPR_Mask.bmp”][IPress,2223]
[FileNameSetNext,“C: emp\1_Pass_BPR_SSS.bmp”][IPress,2302]
,0.43]

  1. Perhaps you could explain what you are expecting to happen with this one. It works as expected for me - after doing a BPR an image is exported through the Document palette.