This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
jwlua:scriptparameters [2013/11/21 14:51] jariw |
jwlua:scriptparameters [2013/11/21 15:09] (current) jariw |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | //JW Lua// can be configured to send specific parameters to the script. The user handles the parameters from the Manager and the parameters can be sent to script both from the Explorer, Finale's plug-in menu or Group Scripts. | + | //JW Lua// can be user configured to send specific parameters to the script. The user handles the parameters from JW Lua's //Manager// and the parameters will then be sent to the script both from JW Lua's //Explorer//, Finale's plug-in menu or in a //Group Script//. Script Parameters are optional. |
+ | {{:wiki:jwlua:scriptparameters-manager.png?nolink|}} | ||
==== Setting the Definition ==== | ==== Setting the Definition ==== | ||
Line 9: | Line 10: | ||
Put each info parameter on a separate line. The syntax is almost identical to [[jwlua:uservalueinput|finenv.UserInputValue() dialog boxes]], except that there's generally no quotation marks around the strings and no ''{}'' around lists. | Put each info parameter on a separate line. The syntax is almost identical to [[jwlua:uservalueinput|finenv.UserInputValue() dialog boxes]], except that there's generally no quotation marks around the strings and no ''{}'' around lists. | ||
+ | |||
+ | //Lists// (except for ''NumberedList'' items) and //init values// are optional for parameters. | ||
==== Handle Parameter in the Script ==== | ==== Handle Parameter in the Script ==== | ||
Line 17: | Line 20: | ||
local relativeresize = true | local relativeresize = true | ||
- | -- Check if parameters were sent to the script | + | -- Check if parameters were sent to the script. |
+ | -- If that's the case, use those values instead. | ||
local parameters = {...} | local parameters = {...} | ||
if parameters[1] then resizestyle = parameters[1] end | if parameters[1] then resizestyle = parameters[1] end |