Adobe 65007312 Programming Guide - Page 19
Using built-in Lua features, Lua global functions, Lua standard namespaces
UPC - 883919154398
View all Adobe 65007312 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 19 highlights
CHAPTER 1: Using the Lightroom SDK The Lightroom SDK scripting environment 19 This shows the predefined error dialog with customized text, according to how the error was thrown: Using built-in Lua features The Lua language defines built-in namespaces and global functions, of which only a subset are supported in the Lightroom SDK Lua environment, as follows: Lua global functions X Available in Lightroom: assert(), dofile(), error(), getmetatable(), ipairs(), load(), loadfile(), loadstring(), next(), pairs(), pcall(), rawequal(), rawget(), rawset(), select(), setmetatable(), tonumber(), tostring(), type(), unpack() X Not available in Lightroom: collectgarbage(), gcinfo(), getfenv(), module(), newproxy(), package(), setfenv() Lua standard namespaces X Available in Lightroom: io, math, string X Not available in Lightroom: package X Partially available: Z os: Contains only the functions clock(), date(), time(), and tmpname(). All other functions removed. Use LrFileUtils, LrDate, and LrTasks instead. Z table: Contains all functions except getn(), setn(), and maxn(), which are deprecated as of Lua 5.1. Z coroutine: Contains only the functions canYield() and running(). Z debug: Contains only the function getInfo().