Using Script-Writing Scripts

Another category that is helpful as you begin to write scripts is the script-writing scripts. These simple scripts show you how to accomplish certain tasks like making an alert box appear or printing debugging messages to the Lua Console.

Note

The Scripts menu is only available in Anime Studio Pro.


The Alert Test script opens a warning dialog box. You can look at the script syntax to produce this alert box by opening the lm_alert.lua script file found in the Scripts, Menu, Script Writing folder where Anime Studio is installed. It can be opened into a simple text editor. Figure 37.1 shows this simple script.

Figure 37.1. lm_alert.lua script.


The result of this script is shown in Figure 37.2.

Figure 37.2. Alert box.


Some of the other script-writing scripts send messages to the Lua Console, as shown in Figure 37.3. This console is a simple message window that can display messages from the scripting engine. Select the Scripts, Script Writing, Print Test menu to see the Lua Console.

Figure 37.3. Lua Console.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset