These built-in demos are a great learning tool because you can see the complete sequence of MEL commands to make the demo.

Go to the demos folder in the ZivaVFX installation path. This folder contains the demo assets, including Maya scene files, textures and MEL scripts.

For example, if ZivaVFX is installed at C:\Program Files\Ziva\VFX, the demos can be found in C:\Program Files\Ziva\VFX\Ziva-VFX-Maya-Module\ZivaVFX-Maya-<VERSION_NUMBER>\demos folder.

This folder is also printed into the Maya Script Editor after you launch the demo from the Ziva Tools menu.

The most relevant code can be found in the “main” procedure of each demo’s MEL script files.

If you look at this MEL code, you will see that it is extensively commented, teaching you how to set up the Ziva scene by yourself.

Everything in Ziva VFX is scriptable. Actually, all the ziva commands are Maya commands, so you can call them in the same way as every other Maya command, either from MEL or Python.

Note that the source code contains long arrays specifying the various paint maps. This is needed to make the demos self-contained. In practice, however, the maps are painted interactively by the artists and there is no need to store them in such a way
(and this is how we made the maps for these demos: we painted them interactively, then read them from the Maya plugs and
converted them to MEL source code).

Our plugin offers two ways to save the Ziva rig, including the painted maps: Maya Save command and zBuilder.