With this short tutorial, you learn how to use your own lua library to insert to Kwik.
mylibrary.lua
———————–
local _M = {} _M.print = function(layer) for k,v in pairs(layer) do print (k) end end return _M
———————–
external code is in mydebug.lua that uses mylibrary. It is just one line code.
———————–
myLib.print(layer)
———————–
you can find mylibrary.lua and mydebug.lua in the following zip.
http://www.kwiksher.com/tutorials/Multi/Recording_Sample.zip
Project and Pages > Add External Library
it is inserted as myLib
Project and Pages > Add External Code
mydebug.lua is just to print myLib.print(layer) passing layer to the parameter
layer is a table which collects each display object generated from photoshop layer
Now you know how to extend Kwik generated lua files with your own codes .