local value = app.preferences.section.option
app.preferences.section.option = newValueGets or sets the given preference option in the given section.
You can find valid section and option names in the
pref.xml
file; each option corresponds to a preference in the preferences menu.
local toolPref = app.preferences.tool(tool)
local value = toolPref.section.option
toolPref.section.option = newValueReturns the preferences of the given tool.
local docPref = app.preferences.document(sprite)
local value = docPref.section.option
docPref.section.option = newValueReturns the preferences of the given sprite.