Quetion: Is it possible to run ZBrush+zscript from command line?

Hello there

I’m finding way how to launch Zbrush and then in same time launch zscript.

So it should be some .bat file that:

  1. Launch Zbrush and waiting while it will be loaded
  2. Press button with my script

About launching Zbrush i find information but how to run script automatically after launching zbrush i did not have answer.


You need to use a zscript that runs automatically without any button presses. So, for example, you can enclose the code you want to run inside an [If…] statement that always evaluates to true:

Note,“Hello world!”]

Then all you need to do at the command line is enter the path to ZBrush followed by the path to the zscript (either *.txt or *.zsc):

[FONT=Courier New]“C:\Program Files\Pixologic\ZBrush 2019\ZBrush.exe” “C:\Program Files\Pixologic\ZBrush 2019\ZScripts\Hello.txt”

This works for me if the path is on C: or D: drive, but how to use UNC paths? For example I want to start script that is located on

“C:\Program Files\Pixologic\ZBrush 2019\ZBrush.exe” “\\my-network-share\my_scripts\script_001.txt”

does not work