Viz Trio User Guide

Version 4.1 | Published September 25, 2023 ©

Macro Commands

Viz Trio Macro Language

The Viz Trio macro language lets you script many of the operations that are normally done in the interface. The general syntax is:

Command [argument]

Note: Some commands take several arguments, such as command scaling that must have the x-, y- and z- axes specified. See the command list for more information.

Macro commands can be used in three ways:

When macros are used, it's often desirable to use commands that would normally trigger a dialog for user input, such as page:delete 1000. The latter example would normally ask a user to confirm deletion. To avoid this, it's possible to set the following modes:

  • gui:set_silent_mode: Controls whether to show dialogues to the user.

  • gui:set_interactive_mode: Controls whether to show dialogues to the user.

This section covers the following topics: