app.preferences
lua
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.
app.preferences.tool()
lua
local toolPref = app.preferences.tool(tool)
local value = toolPref.section.option
toolPref.section.option = newValueReturns the preferences of the given tool.
app.preferences.document()
lua
local docPref = app.preferences.document(sprite)
local value = docPref.section.option
docPref.section.option = newValueReturns the preferences of the given sprite.