Skip to content

LUA Scripting Language

Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.

Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode with a register-based virtual machine, and has automatic memory management with a generational garbage collection, making it ideal for configuration, scripting, and rapid prototyping.

Version: 5.4.7
Programming in LUA: https://www.lua.org/pil/contents.html
LUA Reference: https://lua.org/manual/5.4/

acZoomIn integrates the following standard and custom LUA libraries:

  • coroutine (standard): thread like with methods.
  • io (standard): Input/Output functions for file.
  • math (standard): Trigonometric functions, rounding functions and some constants.
  • matrix (custom): Matrix object with methods.
  • os (standard): Functions for file, date/time and other facilities related to the operating system.
  • string (standard): Functions to manipulate string.
  • table (standard): Auxiliary functions to manipulate tables as arrays.
  • utf8 (standard): Unicode functions.
  • vector (custom): Vector object with methods.

Reserved keywords in LUA scripting for acZoomIn:

  • _luareturnvalue: This variable is used to assign return value for field expression.
  • _luacache: This variable as array of objects is used to cache value between evaluation of the field expression on each sampling of ROI.

Important functions of LUA scripting language:

Examples: