ZBrushCentral

ZScript Guide

I was wondering if there is a guide to writing custom z-scripts? Or is there an easy way to record and view them?

It is very easy to record a zscript. In fact as soon as you start zbrush it is recording what you do. If you want to save your actions as a zscript simply press Zscript : End Recording Session. There are however some things you need to keep in mind.

While recording :

  1. If you save a tool you will need to remember the filename. Give that info to whoever is going to whatch the zscript.
  2. If you are using a startup document recording is disabled as default. In that case press Preferences : Init Zbrush and then Zscript : Record. Otherwise you will need to supply your startup document together with the zscript.
  3. If you load Materials, Textures, Alphas, Curves etc, you need to supply those with the Zscript.

Edit: (1) You only need to remember the filename if you change to another tool and back again. The zbrush adjusts the tool name according to the filename and this is recorded. So when reselecting the saved tool it will be looking for the name you originally used.

If I wanted to output to my own file format, is it possible to create a binary file and have custom printf statements? How do you access the verteces of a tool?

ZBrush 2 allows ZScripts and plugins to exectue DLL files. We will be making more information about ZScripting in Z2 available after the release of the Mac version.